/*
Theme Name: TailWellVet
Theme URI: https://tailwellvet.com
Author: TailWellVet
Description: Clinical pet-nutrition theme for TailWellVet DietPro. Fully editable from Appearance > Customize (text, images, buttons, colors), Appearance > Menus, Widgets, and the block editor for extra page content.
Version: 2.1.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tailwellvet
*/

:root {
	--tw-navy: #0b1528;
	--tw-navy-2: #16284e;
	--tw-accent: #0369a1;
	--tw-accent-light: #38a8dc;
	--tw-bg: #f8fafc;
	--tw-gray: #e5e7eb;
	--tw-muted: #445371;
	--tw-white: #fff;
	--tw-font-head: 'Sora', 'Helvetica Neue', Arial, sans-serif;
	--tw-font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
	--tw-wrap: 1224px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--tw-bg);
	color: var(--tw-navy);
	font-family: var(--tw-font-body);
	font-size: 16px;
	line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tw-accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--tw-accent-light); outline-offset: 3px; }
p { margin: 0 0 1em; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; padding: 12px 20px;
	background: #fff; color: var(--tw-navy); z-index: 100000; top: 8px; left: 8px;
}

/* Layout */
.tw-wrap { max-width: var(--tw-wrap); margin: 0 auto; padding: 0 24px; }
.tw-wrap--narrow { max-width: 820px; }
.tw-section { padding: 88px 0; }
.tw-section--flush { padding: 0 0 88px; }
.tw-section--gray { background: var(--tw-gray); }
.tw-section--navy { background: var(--tw-navy); color: #fff; }
.tw-section--navy2 { background: var(--tw-navy-2); color: #fff; }
.tw-section--fade { background: linear-gradient(180deg, var(--tw-bg), #cfd5df 50%, var(--tw-bg)); }
.tw-center { text-align: center; }
.tw-section--navy a:not(.tw-btn), .tw-section--navy2 a:not(.tw-btn) { color: var(--tw-accent-light); }

/* Type */
.tw-h2, .tw-h3, .tw-hero__title, .tw-step__title, .tw-footer__name { font-family: var(--tw-font-head); font-weight: 500; margin: 0 0 .5em; letter-spacing: -0.01em; }
.tw-hero__title { font-size: clamp(2.4rem, 5.5vw, 4.5rem); line-height: 1.1; margin-bottom: .4em; }
.tw-hero__title strong { font-weight: 600; }
.tw-accent-text { color: var(--tw-navy-2); }
.tw-hero--dark .tw-accent-text { color: var(--tw-accent-light); }
.tw-h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.15; }
.tw-h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2; }
.tw-eyebrow { font-size: 13px; letter-spacing: .04em; text-transform: none; color: var(--tw-muted); margin: 0 0 20px; }
.tw-section--navy .tw-eyebrow, .tw-section--navy2 .tw-eyebrow { color: #c6cfdb; }
.tw-lead { font-size: 1.0625rem; max-width: 68ch; }
.tw-center .tw-lead, .tw-intro--center .tw-lead { margin-left: auto; margin-right: auto; }
.tw-intro { margin-bottom: 40px; }
.tw-intro--center { text-align: center; }
.tw-intro .tw-lead { color: inherit; }

/* Buttons */
.tw-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.tw-actions--center { justify-content: center; }
.tw-btn {
	display: inline-block; padding: 14px 28px; border-radius: 8px; background: var(--tw-navy-2); color: #fff !important;
	font-weight: 500; font-size: 14px; line-height: 1.2; text-decoration: none; border: 0; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease;
}
.tw-btn:hover { background: var(--tw-navy); transform: translateY(-1px); }
.tw-btn--accent { background: var(--tw-accent); }
.tw-btn--accent:hover { background: #02557f; }

/* Header */
.tw-header { background: var(--tw-navy); position: sticky; top: 0; z-index: 50; }
.admin-bar .tw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tw-header { top: 46px; } }
.tw-header__inner { max-width: var(--tw-wrap); margin: 0 auto; padding: 0 24px; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tw-brand img, .tw-brand .custom-logo { height: 46px; width: auto; }
.tw-nav__list, .tw-footer__menu, .tw-footer__support { list-style: none; margin: 0; padding: 0; }
.tw-nav__list { display: flex; gap: 32px; align-items: center; }
.tw-nav__list a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.tw-nav__list a:hover, .tw-nav__list .current-menu-item > a, .tw-nav__list .current_page_item > a { border-bottom-color: var(--tw-accent-light); }
.tw-nav__list li { position: relative; }
.tw-nav__list .sub-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 200px; margin: 0; padding: 12px 16px; list-style: none; background: var(--tw-navy); border-radius: 0 0 8px 8px; }
.tw-nav__list li:hover > .sub-menu, .tw-nav__list li:focus-within > .sub-menu { display: block; }
.tw-nav__list .sub-menu a { display: block; padding: 8px 0; }
.tw-nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: #fff; }
.tw-nav-toggle__bars, .tw-nav-toggle__bars::before, .tw-nav-toggle__bars::after { display: block; width: 24px; height: 2px; background: #fff; margin: 0 auto; position: relative; transition: transform .2s; }
.tw-nav-toggle__bars::before, .tw-nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.tw-nav-toggle__bars::before { top: -7px; }
.tw-nav-toggle__bars::after { top: 7px; }
.is-open .tw-nav-toggle__bars { background: transparent; }
.is-open .tw-nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.is-open .tw-nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
	.tw-nav-toggle { display: block; }
	.tw-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--tw-navy); padding: 12px 24px 24px; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
	.is-open .tw-nav { display: block; }
	.tw-nav__list { flex-direction: column; align-items: flex-start; gap: 6px; }
	.tw-nav__list a { display: block; padding: 10px 0; }
	.tw-nav__list .sub-menu { display: block; position: static; padding: 0 0 0 16px; }
}

/* Hero & splits */
.tw-hero { padding: 80px 0; }
.tw-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tw-split--center { margin-top: 24px; }
.tw-split__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.tw-hero--split .tw-split__media img { aspect-ratio: 1 / 1; max-height: 520px; }
.tw-split--feature .tw-split__media img { aspect-ratio: 4 / 5; max-height: 560px; }
@media (max-width: 860px) {
	.tw-section { padding: 56px 0; }
	.tw-section--flush { padding-bottom: 56px; }
	.tw-hero { padding: 48px 0; }
	.tw-split { grid-template-columns: 1fr; gap: 32px; }
}

/* Stats */
.tw-stats { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tw-section--gray .tw-stats { text-align: center; }
.tw-stat { display: flex; flex-direction: column; gap: 8px; }
.tw-section--gray .tw-stat { align-items: center; }
.tw-stat__icon { color: var(--tw-accent); }
.tw-stat__value { font-family: var(--tw-font-head); font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.15; font-weight: 500; }
.tw-stat__label { font-size: 13px; }
@media (max-width: 700px) { .tw-stats { grid-template-columns: 1fr; } }

/* Cards */
.tw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tw-card { background: var(--tw-gray); color: var(--tw-navy); border-radius: 16px; padding: 28px 24px 32px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.tw-card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #bcd5e4; color: var(--tw-navy-2); margin-bottom: 12px; }
.tw-card__eyebrow { font-size: 13px; color: var(--tw-muted); margin-bottom: 20px; }
.tw-card .tw-h3 { font-size: 1.6rem; }
@media (max-width: 900px) { .tw-cards { grid-template-columns: 1fr; } }

/* Steps */
.tw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tw-step__num { display: block; font-size: 13px; color: var(--tw-muted); margin-bottom: 16px; }
.tw-step__title { font-size: 1.1rem; }
@media (max-width: 860px) { .tw-steps { grid-template-columns: 1fr; } }

/* Feature rows */
.tw-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.tw-feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tw-feature--reverse .tw-feature__media { order: 2; }
@media (max-width: 860px) { .tw-feature { grid-template-columns: 1fr; gap: 24px; } .tw-feature--reverse .tw-feature__media { order: 0; } }

/* Misc sections */
.tw-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .tw-two-col { grid-template-columns: 1fr; gap: 0; } }
.tw-portal { background: var(--tw-bg); padding: 56px 0; }
.tw-portal__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.tw-portal__inner > div { max-width: 760px; }
.tw-workspace { background: var(--tw-bg); }
.tw-workspace:not(:has(*)) { display: none; }
.tw-workspace .tw-h3 { margin-bottom: 8px; }
.tw-cta { text-align: center; }

/* Block editor / page content */
.tw-content { overflow-wrap: anywhere; }
.tw-content > *:last-child { margin-bottom: 0; }
.tw-content h1, .tw-content h2, .tw-content h3, .tw-content h4 { font-family: var(--tw-font-head); font-weight: 500; line-height: 1.2; }
.tw-content .alignwide { max-width: var(--tw-wrap); }
.tw-content .alignfull { max-width: none; }
.tw-content .wp-block-button__link { background: var(--tw-navy-2); border-radius: 8px; }
.tw-section--content { padding-top: 40px; }
.tw-article__title { margin-bottom: 24px; }
.tw-article__thumb { margin-bottom: 32px; }
.tw-meta { font-size: 14px; color: var(--tw-muted); margin-top: 32px; }

/* Blog */
.tw-posts { display: grid; gap: 48px; margin: 40px 0; }
.tw-post__thumb { display: block; margin-bottom: 16px; }
.tw-post .tw-h3 a { color: inherit; text-decoration: none; }
.tw-post .tw-h3 a:hover { color: var(--tw-accent); }
.pagination, .post-navigation, .comments-pagination { margin: 32px 0; }
.nav-links { display: flex; gap: 12px; flex-wrap: wrap; }
.page-numbers { padding: 6px 12px; border: 1px solid var(--tw-gray); border-radius: 6px; text-decoration: none; }
.page-numbers.current { background: var(--tw-navy-2); color: #fff; border-color: var(--tw-navy-2); }
.search-form { display: flex; gap: 8px; margin: 24px 0; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 12px 14px; border: 1px solid #b6bfcc; border-radius: 8px; font: inherit; }
.search-submit, .comment-form input[type=submit] { padding: 12px 20px; border: 0; border-radius: 8px; background: var(--tw-navy-2); color: #fff; font: inherit; cursor: pointer; }
.tw-comments { margin-top: 56px; }
.tw-comments__list { padding-left: 20px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #b6bfcc; border-radius: 8px; font: inherit; }

/* Footer */
.tw-footer { border-top: 1px solid rgba(248,250,252,.12); background: var(--tw-navy); color: #f8fafc; padding: 56px 0 28px; }
.tw-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.tw-footer__rule { display: block; width: 48px; height: 3px; background: var(--tw-accent-light); margin-bottom: 16px; }
.tw-footer__name { font-size: 1.6rem; margin-bottom: 8px; }
.tw-footer__heading { font-family: var(--tw-font-body); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--tw-accent-light); margin: 0 0 14px; }
.tw-footer__menu li, .tw-footer__support li { margin-bottom: 8px; }
.tw-footer__menu a { color: #f8fafc; text-decoration: none; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.tw-footer__support a, .tw-footer .widget a { color: #f8fafc; text-decoration: none; }
.tw-footer a:hover { text-decoration: underline; }
.tw-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(248,250,252,.35); margin-top: 40px; padding-top: 16px; font-size: 12px; }
.tw-footer__bottom p { margin: 0; }
.tw-footer__note { margin-left: 16px; }
.tw-footer__badge { color: var(--tw-accent-light); letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 860px) { .tw-footer__grid { grid-template-columns: 1fr; gap: 32px; } .tw-footer__note { display: block; margin: 6px 0 0; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* About and restrained scientific attribution */
.tw-identity { display:flex; align-items:center; gap:clamp(24px,5vw,64px); }
.tw-identity__photo { flex:0 0 min(32%,280px); }
.tw-identity__photo img { display:block; width:100%; height:auto; border-radius:12px; }
.tw-identity__text { max-width:720px; }
.tw-identity__role { color:var(--tw-accent); font-weight:600; }
.tw-scientific-credit { padding-block:28px; }
.tw-scientific-credit p:last-child { margin-bottom:0; }
.tw-footer__credit a { color:var(--tw-accent-light); }
.tw-nav__list { gap:clamp(12px,2vw,32px); }
a:focus-visible, button:focus-visible { outline:3px solid var(--tw-accent-light); outline-offset:4px; }
@media(max-width:640px) { .tw-identity { flex-direction:column; align-items:flex-start; } .tw-identity__photo { width:min(100%,240px); } }
