/* HerdDogg theme styles — layered on top of theme.json */

/* ---------- Header ---------- */
.hd-header { position: sticky; top: 0; z-index: 50; }
body.admin-bar .hd-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hd-header { top: 46px; } }
.hd-header .wp-block-site-logo img { height: auto; max-height: 42px; width: auto; }
.hd-nav a { text-decoration: none; }
.hd-nav a:hover { color: var(--wp--preset--color--teal-light) !important; }
.hd-nav .hd-nav-login a {
	border: 2px solid var(--wp--preset--color--teal);
	border-radius: 15px;
	padding: 0.35rem 1.1rem;
}
.wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.5rem; }

/* Remove the gap WordPress adds between template parts and main */
.wp-site-blocks > * + * { margin-block-start: 0; }
.hd-main > .wp-block-post-content > *:first-child { margin-block-start: 0; }
.hd-main .wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }

/* ---------- Sections ---------- */
.hd-section { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.hd-eyebrow {
	color: var(--wp--preset--color--rust);
	font-weight: 700;
	letter-spacing: 0.14em;
	font-size: 0.9rem;
	margin-bottom: 0.25rem;
}
.hd-intro { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.hd-rounded img { border-radius: 24px; }
mark.has-inline-color { padding: 0; }

/* Hero */
.hd-hero h1 { max-width: 15ch; margin-left: auto; margin-right: auto; }
.hd-hero .wp-block-cover__inner-container { padding-bottom: 8vh; }
.hd-hero p { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Left-aligned cover bands: line text up with the page content column */
.wp-block-cover.hd-video-band .wp-block-cover__inner-container,
.wp-block-cover.hd-protect .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: var(--wp--style--global--content-size, 1140px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.hd-video-band .wp-block-cover__inner-container > .wp-block-group,
.hd-protect .wp-block-cover__inner-container > .wp-block-group { max-width: 640px; margin-left: 0 !important; }

/* Light-outlined button (used on dark backgrounds) */
.hd-btn-light .wp-block-button__link { border-color: #fff; }

/* ---------- Tabs (Estrus / Illness / Recovery) ---------- */
.hd-tab-media { position: relative; }
.hd-tab-media .hd-tab-img { margin: 0; }
.hd-tab-media .hd-tab-img img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 40px rgba(17, 17, 17, 0.12); }
.hd-tabs.is-ready .hd-tab-img { display: none; }
.hd-tabs.is-ready .hd-tab-img.is-active { display: block; animation: hd-fade 0.35s ease; }

.hd-tab-list { display: flex; flex-direction: column; gap: 0 !important; }
.hd-tab {
	border-top: 1px solid rgba(17, 17, 17, 0.12);
	padding: 1.25rem 0 1.25rem 1.25rem;
	position: relative;
	cursor: pointer;
	margin: 0 !important;
}
.hd-tab:last-child { border-bottom: 1px solid rgba(17, 17, 17, 0.12); }
.hd-tab::before {
	content: "";
	position: absolute; left: 0; top: 0; bottom: 0;
	width: 4px; background: transparent; transition: background 0.2s;
}
.hd-tab.is-active::before { background: var(--wp--preset--color--rust); }
.hd-tab-title {
	font-size: 1.05rem !important;
	letter-spacing: 0.1em;
	margin: 0 !important;
	color: var(--wp--preset--color--slate);
}
.hd-tab.is-active .hd-tab-title { color: var(--wp--preset--color--teal); }
.hd-tab-body { margin: 0.5rem 0 0 !important; }
.hd-tabs.is-ready .hd-tab:not(.is-active) .hd-tab-body { display: none; }
.hd-tab:focus-visible { outline: 2px solid var(--wp--preset--color--teal); outline-offset: 2px; }

@keyframes hd-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Benefit cards ---------- */
.hd-card {
	background: #fff;
	border-radius: 16px;
	padding: 1.75rem;
	border-top: 4px solid var(--wp--preset--color--teal);
	box-shadow: 0 6px 20px rgba(17, 17, 17, 0.05);
}
.hd-card:nth-child(even) { border-top-color: var(--wp--preset--color--rust); }
.hd-card h3 { font-size: 1.2rem !important; margin-bottom: 0.5rem; }
.hd-card p { margin: 0; }

/* ---------- Feature lists ---------- */
.hd-feature { padding-left: 1.25rem; border-left: 4px solid var(--wp--preset--color--teal); margin-top: 1.5rem !important; }
.hd-feature:nth-of-type(even) { border-left-color: var(--wp--preset--color--rust); }
.hd-feature h3 { margin: 0; }
.hd-feature p { margin: 0.35rem 0 0; }

/* ---------- Testimonials ---------- */
.hd-quote { border-left: 0; padding: 0; margin: 0; }
.hd-quote p { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.35; color: var(--wp--preset--color--ink); }
.hd-quote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; color: var(--wp--preset--color--teal-dark); }

/* ---------- Footer ---------- */
.hd-footer a { color: #fff; text-decoration: none; }
.hd-footer a:hover { color: var(--wp--preset--color--teal-light); }
.hd-footer .wp-block-site-logo img { height: auto; }
.hd-footer-rule { opacity: 0.4; margin-top: 2.5rem; margin-bottom: 1.25rem; border: 0; height: 1px; width: 100% !important; }
.hd-footer-legal p { margin: 0; opacity: 0.85; }

/* ---------- Contact form ---------- */
.hd-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.hd-form .hd-field { display: flex; flex-direction: column; gap: 0.35rem; }
.hd-form .hd-field--full { grid-column: 1 / -1; }
.hd-form label { font-weight: 600; font-size: 0.95rem; color: var(--wp--preset--color--ink); }
.hd-form .hd-req { color: var(--wp--preset--color--rust); }
.hd-form input,
.hd-form select,
.hd-form textarea {
	font: inherit;
	padding: 0.75rem 0.9rem;
	border: 1px solid #cfd6db;
	border-radius: 10px;
	background: #fff;
	color: var(--wp--preset--color--body);
	width: 100%;
	box-sizing: border-box;
}
.hd-form input:focus,
.hd-form select:focus,
.hd-form textarea:focus { outline: 2px solid var(--wp--preset--color--teal); outline-offset: 1px; border-color: var(--wp--preset--color--teal); }
.hd-form textarea { min-height: 140px; resize: vertical; }
.hd-form .hd-check { flex-direction: row; align-items: flex-start; gap: 0.6rem; font-weight: 400; }
.hd-form .hd-check input { width: auto; margin-top: 0.3rem; }
.hd-form button {
	justify-self: start;
	background: var(--wp--preset--color--teal);
	color: #fff;
	border: 2px solid var(--wp--preset--color--teal-dark);
	border-radius: 15px;
	padding: 0.85rem 2rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.hd-form button:hover { background: var(--wp--preset--color--teal-dark); }
.hd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hd-notice { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem; font-weight: 600; }
.hd-notice--ok { background: #e3f6f1; color: #165C64; }
.hd-notice--err { background: #fbe9e2; color: #8a3a17; }
@media (max-width: 640px) { .hd-form { grid-template-columns: 1fr; } }

/* ---------- Small screens ---------- */
@media (max-width: 1024px) {
	.hd-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 781px) {
	.hd-benefits { grid-template-columns: 1fr !important; }
	.hd-tab-media { order: 2; }
	.hd-video-band .wp-block-cover__inner-container h2 { font-size: 2rem !important; }
}
@media (prefers-reduced-motion: reduce) {
	.hd-tabs .hd-tab-img.is-active { animation: none; }
}
