/*
Theme Name: MewCareVet New
Theme URI: https://mewcarevet.com
Author: MewCareVet
Author URI: https://mewcarevet.com
Description: An official theme for MewCareVet
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mewcarevet
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/


:root {
    --teal: #0d9488;
    --teal-primary: #0d9488;
    --teal-dark: #0f766e;
    --sage: #4a9e38;
    --orange: #f59e0b;
    --orange-hover: #d97706;
    --orange-dark: #d97706;
    --bg-light: #f8fafb;
    --text-main: #1a2e2c;
    --text-muted: #5f7876;
    --bg: #f8fafb;
    --text: #1a2e2c;
    --muted: #5f7876;
    --ink: #0e1a17;
    --card: #ffffff;
    --border: #e8e4de;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--text-main);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

.mono {
    font-family: 'DM Mono', monospace
}

h1,
h2,
h3,
.font-serif {
    font-family: 'DM Serif Display', Georgia, serif;
}

/* ── Sticky header ── */
#site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow .25s ease, background .25s ease;
}

/* ── Category pill ── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background-color: #dcfce7;
}

.cat-dog {
    background: #dcfce7;
    color: #14532d
}

.cat-cat {
    background: #dbeafe;
    color: #1e3a8a
}

.cat-nutrition {
    background: #fef3c7;
    color: #78350f
}

.cat-symptoms {
    background: #ffe4e6;
    color: #9f1239
}

.cat-breeds {
    background: #f3e8ff;
    color: #581c87
}

.cat-behavior {
    background: #fef9c3;
    color: #713f12
}

.cat-senior {
    background: #e0f2fe;
    color: #0c4a6e
}

.cat-guide {
    background: #f0fdf4;
    color: #14532d
}

#site-header.scrolled {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .08);
    backdrop-filter: blur(8px);
}

/* ── Hero gradient ── */
.hero-bg {
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f5f2 40%, #fef9f0 100%);
}

.featured-overlay {
    background: linear-gradient(to top, rgba(15, 118, 110, .92) 0%, rgba(13, 148, 136, .6) 40%, transparent 80%)
}

/* ── Cards hover ── */
.card-hover {
    transition: transform .25s ease, box-shadow .25s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(13, 148, 136, .14);
}

/* ── Search bar ── */
.search-glow:focus-within {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, .25);
}

/* ── Symptom pills ── */
.symptom-pill {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(6px);
    transition: background .2s ease, transform .2s ease;
}

.symptom-pill:hover {
    background: rgba(255, 255, 255, .32);
    transform: translateY(-2px);
}

/* ── Star rating ── */
.stars {
    color: #f59e0b;
}

/* ── Section alt bg ── */
.section-alt {
    background: var(--bg-light);
}

/* ── Cards ── */
.article-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(14, 26, 23, .1);
    border-color: #b2d8d4
}

.card-img-wrap {
    overflow: hidden
}

.card-img-wrap div {
    transition: transform .4s ease
}

.article-card:hover .card-img-wrap div {
    transform: scale(1.05)
}

/* ── Mobile nav ── */
#mobile-menu {
    display: none;
}

#mobile-menu.open {
    display: block;
}

/* ── Underline animation for nav links ── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-primary);
    transition: width .22s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
}


.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Product badge ── */
.badge-new {
    background: linear-gradient(90deg, #14b8a6, #0d9488);
}

/* ── Guide card ── */
.guide-card {
    background-size: cover;
    background-position: center;
}

/* ── Newsletter gradient ── */
.newsletter-bg {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #0d9488 100%);
}

.hero-404 {
    background: linear-gradient(135deg, #f0fdfa 0%, #e6faf6 50%, #fef9f0 100%)
}

.num-404 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(7rem, 20vw, 14rem);
    line-height: 1;
    background: linear-gradient(135deg, #14b8a6, #0d9488, #4a9e38);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 24px rgba(13, 148, 136, .18));
    user-select: none;
}

.quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: .875rem;
    font-weight: 600;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: var(--muted);
    transition: all .18s;
    text-decoration: none;
    white-space: nowrap
}

.quick-pill:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-light);
    transform: translateY(-2px)
}

.bc-sep::before {
    content: '›';
    margin: 0 6px;
    color: #9ca3af
}

.sidebar-sticky {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c7d7d6 transparent
}

.sidebar-sticky::-webkit-scrollbar {
    width: 4px
}

.sidebar-sticky::-webkit-scrollbar-thumb {
    background: #c7d7d6;
    border-radius: 4px
}

/* Sort tabs */
.sort-btn {
    padding: 7px 18px;
    border-radius: 50px;
    font-size: .8125rem;
    font-weight: 600;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap
}

.sort-btn.active,
.sort-btn:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal)
}

/* Pagination */
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: .8125rem;
    font-weight: 600;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    transition: all .18s
}

.pg-btn:hover,
.pg-btn.active {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal)
}

.nl-bg {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 55%, #0d9488 100%)
}

/* Back to top */
#back-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(13, 148, 136, .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    cursor: pointer
}

#back-top.show {
    opacity: 1;
    pointer-events: auto
}

#back-top:hover {
    transform: translateY(-3px)
}

/* Article card image */
.article-img {
    overflow: hidden
}

.article-img>div {
    transition: transform .35s ease
}

.card-hover:hover .article-img>div {
    transform: scale(1.04)
}

/* Tag pill */
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600
}

/* Category card */
.cat-card {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(13, 148, 136, .12);
    border-color: #5eead4
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '›';
    margin: 0 6px;
    color: #9ca3af;
}

/* ── Article prose ── */
.prose-article {
    line-height: 1.85;
    font-size: 1.0625rem;
    color: #2d3f3e;
}

.prose-article p {
    margin-bottom: 1.35rem;
}

.prose-article h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.65rem;
    color: var(--teal-dark);
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--teal-light);
}

.prose-article h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--text);
    margin: 1.75rem 0 .65rem;
}

.prose-article ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.35rem;
}

.prose-article ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: .5rem;
}

.prose-article ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

.prose-article ol {
    padding-left: 1.5rem;
    margin-bottom: 1.35rem;
}

.prose-article ol li {
    margin-bottom: .5rem;
}

.prose-article a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose-article a:hover {
    color: var(--teal-dark);
}

.prose-article strong {
    font-weight: 600;
    color: var(--text);
}

/* ── TOC sticky ── */
.toc-sticky {
    position: sticky;
    top: 80px;
}

.toc-link {
    display: block;
    padding: 5px 0 5px 14px;
    border-left: 2px solid #e5eeed;
    font-size: .875rem;
    color: var(--muted);
    transition: color .18s, border-color .18s;
    text-decoration: none;
    line-height: 1.45;
}

.toc-link:hover,
.toc-link.active {
    color: var(--teal);
    border-left-color: var(--teal);
}

/* ── FAQ accordion ── */
.faq-answer {
    display: none;
}

.faq-answer.open {
    display: block;
}

.faq-chevron {
    transition: transform .25s ease;
}

.faq-chevron.open {
    transform: rotate(180deg);
}

/* ── Vet tip box ── */
.vet-tip {
    background: linear-gradient(135deg, #f0fdfa 0%, #e6faf6 100%);
    border-left: 4px solid var(--teal);
}

.warning-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef9e4 100%);
    border-left: 4px solid var(--orange);
}

/* ── Progress bar ── */
#read-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), #2dd4bf);
    width: 0%;
    transition: width .1s linear;
}

/* ── Share bar ── */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .8125rem;
    font-weight: 600;
    transition: opacity .18s, transform .18s;
}

.share-btn:hover {
    opacity: .85;
    transform: translateY(-1px);
}

/* filter tabs */
.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .18s ease;
    white-space: nowrap
}

.filter-tab.active {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal)
}

.filter-tab:not(.active) {
    background: #fff;
    color: var(--muted);
    border-color: #e5e7eb
}

.filter-tab:not(.active):hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-light)
}

/* result type badges */
.badge-article {
    background: #e0f5f2;
    color: var(--teal-dark)
}

.badge-symptom {
    background: #fef3c7;
    color: #92400e
}

.badge-breed {
    background: #e0e7ff;
    color: #3730a3
}

.badge-review {
    background: #dcfce7;
    color: #166534
}

/* Trust list check */
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px
}

.trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: .9375rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color .18s, box-shadow .18s;
    outline: none;
}

.form-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, .15)
}

.form-input.error {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, .1)
}

.form-input::placeholder {
    color: #9ca3af
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer
}

.form-label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px
}

.field-error {
    font-size: .75rem;
    color: #e11d48;
    margin-top: 4px;
    display: none
}

.field-error.show {
    display: block
}

/* ── Hero ── */
.hero-section {
    background: var(--ink);
    position: relative;
    overflow: hidden
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none
}

.hero-accent {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none
}

/* ── Featured hero card ── */
.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--ink)
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
    transition: transform .6s ease, opacity .4s
}

.hero-card:hover .hero-img {
    transform: scale(1.03);
    opacity: .45
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 26, 23, .92) 0%, rgba(14, 26, 23, .5) 55%, transparent 100%)
}

/* ── Horizontal card ── */
.h-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s
}

.h-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(14, 26, 23, .09);
    border-color: #b2d8d4
}


.hero-bar {
    background: var(--ink);
    color: #fff
}