/*
Theme Name: DataView Tax
Theme URI: https://www.dataviewtax.com
Author: DataView Tax Service, Inc.
Description: Custom block theme for DataView Tax Service, Inc. in Wooster, Ohio. Navy and gold "Hometown Trusted" design with page layouts for Home, About, Our Staff, Services, Refer-A-Friend and Contact.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dataview
*/

/* ---------- Basics ---------- */
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { height: auto; }
.wp-block-post-content > .alignfull:first-child { margin-top: 0; }
.wp-block-post-content > * + * { margin-block-start: 0; }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link { text-decoration: none; line-height: 1.3; }
.wp-block-button.is-style-dv-navy .wp-block-button__link { background: #1F3A5F; color: #fff; }
.wp-block-button.is-style-dv-navy .wp-block-button__link:hover { background: #14263F; }
.wp-block-button.is-style-dv-outline .wp-block-button__link { background: transparent; color: #1F3A5F; box-shadow: inset 0 0 0 1.5px #1F3A5F; }
.wp-block-button.is-style-dv-outline .wp-block-button__link:hover { background: #1F3A5F; color: #fff; }
.wp-block-button.is-style-dv-outline-light .wp-block-button__link { background: transparent; color: #F3EBDD; box-shadow: inset 0 0 0 1.5px #F3EBDD; }
.wp-block-button.is-style-dv-outline-light .wp-block-button__link:hover { background: #F3EBDD; color: #1F3A5F; }
.wp-block-button.is-style-dv-white .wp-block-button__link { background: #fff; color: #1F3A5F; }
.dv-btn-lg .wp-block-button__link { font-size: 1.0625rem; padding: 1rem 1.6rem; }

/* ---------- Header ---------- */
.dv-topbar { background: #1F3A5F; color: #F3EBDD; font-size: 0.875rem; padding-block: 0.6rem; }
.dv-topbar p { margin: 0; }
.dv-topbar a { color: #F3EBDD; font-weight: 600; text-decoration: none; }
.dv-topbar a:hover { color: #fff; text-decoration: underline; }
.dv-header { border-bottom: 1px solid #E6DDCB; padding-block: 1.1rem; background: #FBF8F2; }
.dv-brand { gap: 0.75rem; }
.dv-brand .wp-block-image { margin: 0; }
.dv-brand .wp-block-image img { height: 52px; width: auto; }
.dv-brand-name { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 1.375rem; color: #1F3A5F; margin: 0; line-height: 1.2; }
.dv-brand-name a { color: inherit; text-decoration: none; }
.dv-brand-tag { font-size: 0.8125rem; color: #5B6573; margin: 0; }
.dv-nav { font-size: 0.9375rem; font-weight: 500; }
.dv-nav .wp-block-navigation-item__content { text-decoration: none; }
.dv-nav .current-menu-item > .wp-block-navigation-item__content { color: #8A6420; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.dv-header .wp-block-buttons .wp-block-button__link { font-size: 0.9375rem; padding: 0.7rem 1.1rem; }

/* ---------- Sections ---------- */
.dv-section { padding-block: clamp(3rem, 6vw, 5rem); }
.dv-section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.dv-eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8A6420; margin-bottom: 0.5rem !important; }
.dv-lead { font-size: 1.1875rem; line-height: 1.6; color: #3C4757; max-width: 42rem; }
.dv-muted { color: #5B6573; }
.dv-band { background: #1F3A5F; color: #F3EBDD; }
.dv-band h1, .dv-band h2 { color: #fff; }
.dv-band h3 { color: #F3D79B; }
.dv-band a:not(.wp-block-button__link) { color: #F3D79B; }
.dv-white-band { background: #fff; border-block: 1px solid #E6DDCB; }

/* ---------- Hero ---------- */
.dv-hero { padding-block: clamp(3rem, 7vw, 4.5rem); }
.dv-hero h1 { margin-top: 0.5rem; }
.dv-hero .wp-block-image img, .dv-photo img { border-radius: 12px; width: 100%; object-fit: cover; }
.dv-hero-photo img { aspect-ratio: 4 / 3.2; }

/* ---------- Cards and grids ---------- */
.dv-card { background: #fff; border: 1px solid #E6DDCB; border-radius: 12px; padding: 1.75rem; }
.dv-card h3 { margin-top: 0; }
.dv-card p:last-child { margin-bottom: 0; }
.dv-card-navy { background: #2A4A72; border: 0; border-radius: 10px; padding: 1.75rem; color: #F3EBDD; }
.dv-card-navy h3 { color: #fff; font-family: var(--wp--preset--font-family--inter); font-size: 1.125rem; margin-top: 0; }
.dv-panel { background: #F3EBDD; border-radius: 12px; padding: clamp(1.75rem, 4vw, 2.5rem); }
.dv-panel-navy { background: #1F3A5F; color: #F3EBDD; border-radius: 12px; padding: clamp(1.75rem, 4vw, 2.5rem); }
.dv-panel-navy h2 { color: #fff; }

/* Stats row */
.dv-stat-number { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 2.25rem; color: #1F3A5F; line-height: 1.1; margin: 0; }
.dv-stat-label { color: #5B6573; font-size: 0.9375rem; margin: 0.25rem 0 0; }

/* Timeline */
.dv-year { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 2.1rem; color: #1F3A5F; line-height: 1.1; margin: 0; }
.dv-card.is-current { background: #1F3A5F; border-color: #1F3A5F; color: #F3EBDD; }
.dv-card.is-current .dv-year { color: #F3D79B; }

/* Steps */
.dv-step-num { width: 48px; height: 48px; border-radius: 50%; background: #1F3A5F; color: #fff; font-family: var(--wp--preset--font-family--fraunces); font-size: 1.375rem; font-weight: 600; display: flex; align-items: center; justify-content: center; margin: 0 0 1rem; }

/* Chips */
.dv-chips { gap: 0.5rem; }
.dv-chip { background: #F3EBDD; border-radius: 6px; padding: 0.35rem 0.75rem; font-size: 0.9375rem; margin: 0; }
.dv-badge { display: inline-block; background: #1F3A5F; color: #fff; border-radius: 6px; padding: 0.35rem 0.75rem; font-size: 0.875rem; font-weight: 600; }

/* Service rows */
.dv-service-num { font-family: var(--wp--preset--font-family--fraunces); font-size: 1.125rem; color: #8A6420; margin: 0; }
.dv-service ul { margin: 0; padding-left: 1.25rem; line-height: 1.8; color: #3C4757; }

/* Staff cards */
.dv-staff { align-items: flex-start !important; }
.dv-staff .dv-headshot { flex: 0 0 220px; margin: 0; }
.dv-staff .dv-headshot img { width: 220px; height: 260px; object-fit: cover; object-position: center top; border-radius: 10px; border: 1px solid #E6DDCB; background: #fff; }
.dv-staff-role { font-weight: 600; color: #8A6420; margin: 0.25rem 0 1rem; }
.dv-staff h2 { font-size: 1.875rem; margin: 0; }
.dv-staff p { color: #3C4757; }

/* Quote */
.dv-quote { font-family: var(--wp--preset--font-family--fraunces); font-size: 1.5rem; font-weight: 600; color: #1F3A5F; line-height: 1.3; margin: 0; }

/* Testimonials */
.dv-testimonial { font-family: var(--wp--preset--font-family--fraunces); font-size: 1.25rem; line-height: 1.5; color: #1E2A38; }

/* Big phone */
.dv-big-phone .wp-block-button__link { font-family: var(--wp--preset--font-family--fraunces); font-size: clamp(1.6rem, 4vw, 2.1rem); padding: 1.1rem 2rem; border-radius: 8px; }

/* Link list */
.dv-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.85rem; font-weight: 500; font-size: 1.0625rem; }

/* ---------- Footer ---------- */
.dv-footer { background: #14263F; color: #C9D3E0; font-size: 0.9375rem; padding-block: 3rem; }
.dv-footer p { margin: 0; }
.dv-footer a { color: #F3D79B; }
.dv-footer .dv-footer-links a { color: #C9D3E0; }
.dv-footer-name { font-family: var(--wp--preset--font-family--fraunces); font-size: 1.25rem; color: #fff !important; margin-bottom: 0.4rem !important; }
.dv-footer .wp-block-image { margin: 0; }
.dv-footer .wp-block-image img { height: 64px; width: auto; }
.dv-copyright { border-top: 1px solid #2A3F5C; margin-top: 2rem !important; padding-top: 1.25rem; font-size: 0.8125rem; color: #9FB0C4; }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.dv-staff .dv-headshot { flex-basis: 100%; }
	.dv-topbar .wp-block-group { justify-content: flex-start !important; }
}

/* Staff card text column */
.dv-staff > .wp-block-group { flex: 1 1 420px; min-width: 0; }
.dv-staff > .wp-block-group > h2 { margin-top: 0; }
/* Charity / text cards */
p.dv-card { margin: 0; padding: 1.1rem 1.4rem; }
p.dv-panel { margin-top: 1rem; padding: 1.1rem 1.5rem; color: #1F3A5F; }

/* Partner badge */
.dv-footer .dv-partner-badge img { height: auto; width: 120px; }

/* Office hours block */
.dv-hours p { margin: 0; line-height: 1.6; }
.dv-hours strong { display: inline-block; margin-bottom: 0.15rem; }
.dv-topbar a[href*="#hours"] { text-decoration: underline; text-underline-offset: 3px; }
html { scroll-padding-top: 1.5rem; }
