/*
Theme Name: Document Solutions of the Valley
Theme URI: https://dsotv.com/
Author: Document Solutions of the Valley LLC
Description: Custom theme for Document Solutions of the Valley — copier sales, leasing, service and supplies in Phoenix, AZ. Everything is editable: company info, homepage sections and colors in Appearance → Customize → Document Solutions Theme; header and footer links in Appearance → Menus; inner pages with the block editor. Includes built-in quote, service, toner and meter-reading forms.
Version: 1.3.0
Requires at least: 6.0
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: dsotv
Tags: business, custom-logo, custom-menu, featured-images, block-patterns, editor-style, one-column, two-columns
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--c-primary: #0b5cab;
	--c-primary-dark: #094b8c;
	--c-primary-soft: #e7eff7;
	--c-dark: #0a1f3c;
	--c-dark-2: #213550;
	--c-accent: #f28c28;
	--c-accent-dark: #d57b23;
	--c-text: #26334a;
	--c-muted: #5b6b82;
	--c-line: #dde4ee;
	--c-light: #f3f6fa;
	--c-white: #ffffff;
	--c-success: #1f8a4c;
	--c-error: #c0392b;

	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--f-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow-sm: 0 1px 2px rgba(10, 31, 60, .06), 0 2px 8px rgba(10, 31, 60, .05);
	--shadow: 0 10px 30px rgba(10, 31, 60, .10);
	--shadow-lg: 0 24px 60px rgba(10, 31, 60, .18);

	--container: 1200px;
	--gutter: 24px;
	--header-h: 84px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--c-text);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-head);
	color: var(--c-dark);
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 800;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 100px) 0; }

.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 !important; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--c-dark); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { left: 8px; color: #fff; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--f-head); font-weight: 700; font-size: .82rem;
	text-transform: uppercase; letter-spacing: .12em;
	color: var(--c-primary); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--c-accent); }
.eyebrow--light { color: #9cc8ff; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-title { margin-bottom: 16px; }
.lead { font-size: 1.14rem; color: var(--c-muted); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn, .wp-block-button__link, .dsotv-form button[type="submit"], .search-form .search-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--f-head); font-weight: 700; font-size: .98rem; line-height: 1.2;
	padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 16px 30px; font-size: 1.04rem; }
.btn--sm { padding: 8px 16px; font-size: .88rem; }
.btn--primary, .wp-block-button__link { background: var(--c-primary); color: #fff; }
.btn--primary:hover, .wp-block-button__link:hover { background: var(--c-primary-dark); color: #fff; }
.btn--accent, .dsotv-form button[type="submit"] { background: var(--c-accent); color: #1a1205; box-shadow: 0 6px 16px rgba(242, 140, 40, .28); }
.btn--accent:hover, .dsotv-form button[type="submit"]:hover { background: var(--c-accent-dark); color: #1a1205; }
.btn--outline, .is-style-outline > .wp-block-button__link { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover, .is-style-outline > .wp-block-button__link:hover { background: var(--c-primary); color: #fff; }
.btn--ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { background: #fff; color: var(--c-dark); border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-head); font-weight: 700; }
.link-arrow svg, .solution-card__more svg { transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.topbar { background: var(--c-dark); color: #c9d6ea; font-size: .86rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar__left { display: flex; align-items: center; gap: 22px; }
.topbar__phone { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.topbar__phone:hover { color: var(--c-accent); }
.topbar__phone svg { color: var(--c-accent); }
.topbar__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.topbar__menu a { color: #c9d6ea; font-weight: 500; }
.topbar__menu a:hover { color: #fff; }

.site-header { background: #fff; position: relative; z-index: 50; border-bottom: 1px solid var(--c-line); transition: box-shadow .2s; }
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 31, 60, .08); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.site-brand { flex-shrink: 0; }
.site-brand .custom-logo { max-height: 58px; width: auto; }
.text-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--c-dark); }
.text-logo:hover { color: var(--c-dark); }
.text-logo__mark { color: var(--c-primary); display: inline-flex; flex-shrink: 0; }
.text-logo__words { display: flex; flex-direction: column; line-height: 1.1; }
.text-logo__name { font-family: var(--f-head); font-weight: 800; font-size: 1.06rem; letter-spacing: -.01em; }
.text-logo__tag { font-size: .74rem; color: var(--c-muted); font-weight: 500; margin-top: 3px; letter-spacing: .02em; }

.primary-nav { margin-left: auto; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav .menu > li > a {
	display: block; padding: 10px 10px; color: var(--c-dark); white-space: nowrap;
	font-family: var(--f-head); font-weight: 700; font-size: .98rem; border-radius: 8px;
}
.primary-nav .menu > li > a:hover,
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a,
.primary-nav .menu > .current-page-ancestor > a { color: var(--c-primary); }
.primary-nav .menu-item-has-children > a { padding-right: 2px; }
.submenu-toggle { background: none; border: 0; padding: 8px 6px; color: var(--c-dark); cursor: pointer; display: inline-flex; border-radius: 6px; }
.submenu-toggle svg { transition: transform .2s; }
.is-open > .submenu-toggle svg { transform: rotate(180deg); }
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 10px;
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
	background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--c-line);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--c-text); font-weight: 500; font-size: .95rem; }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { background: var(--c-primary-soft); color: var(--c-primary); }
.primary-nav__mobile-extra { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 10px; color: var(--c-dark); }
.header-phone__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); }
.header-phone__text { white-space: nowrap; display: flex; flex-direction: column; font-family: var(--f-head); font-weight: 800; line-height: 1.15; font-size: 1rem; }
.header-phone__text small { font-family: var(--f-body); font-weight: 500; font-size: .74rem; color: var(--c-muted); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--c-dark); padding: 8px; cursor: pointer; border-radius: 8px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative; overflow: hidden; color: #dfe8f5;
	background: radial-gradient(1000px 520px at 85% 30%, rgba(11, 92, 171, .55), transparent 60%), linear-gradient(135deg, var(--c-dark) 0%, #0d2a52 100%);
	padding: clamp(56px, 8vw, 104px) 0 clamp(120px, 12vw, 160px);
}
.hero--photo { background: linear-gradient(90deg, rgba(10, 31, 60, .92) 0%, rgba(10, 31, 60, .75) 50%, rgba(10, 31, 60, .35) 100%), var(--hero-img) center / cover no-repeat; }
.hero__shapes span { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__shapes span:first-child { width: 520px; height: 520px; left: -220px; bottom: -300px; border: 60px solid rgba(255, 255, 255, .035); }
.hero__shapes span:last-child { width: 14px; height: 14px; right: 8%; top: 18%; background: var(--c-accent); box-shadow: -380px 300px 0 -3px rgba(255, 255, 255, .25), -120px 420px 0 -4px rgba(156, 200, 255, .5); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero--photo .hero__inner { grid-template-columns: minmax(0, 720px); }
.hero__title { color: #fff; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.07; letter-spacing: -.025em; margin-bottom: 22px; }
.hero__text { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 600px; color: #c9d6ea; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__call { display: inline-flex; align-items: center; gap: 10px; color: #c9d6ea; }
.hero__call svg { color: var(--c-accent); }
.hero__call strong { color: #fff; }
.hero__call:hover { color: #fff; }
.hero__art { position: relative; }
.hero-art { width: 100%; height: auto; }
.hero-art__page { animation: dsotv-float 6s ease-in-out infinite; transform-origin: center; }
.hero-art__page--2 { animation-delay: -3s; }
@keyframes dsotv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-art__page { animation: none; } html { scroll-behavior: auto; } }

/* Existing customer bar (overlaps hero) */
.customer-bar { position: relative; z-index: 2; margin-top: -84px; }
.customer-bar__inner {
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
	display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center; padding: 28px 32px;
	border-top: 4px solid var(--c-accent);
}
.customer-bar__intro h2 { font-size: 1.35rem; margin-bottom: 4px; }
.customer-bar__intro p { margin: 0; color: var(--c-muted); font-size: .96rem; }
.customer-bar__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.customer-link {
	display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px;
	background: var(--c-light); color: var(--c-dark); font-family: var(--f-head); font-weight: 700; font-size: .96rem; line-height: 1.25;
	border: 1px solid transparent; transition: all .15s;
}
.customer-link > span:nth-child(2) { flex: 1; }
.customer-link__icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--c-primary); box-shadow: var(--shadow-sm); }
.customer-link > svg { color: var(--c-muted); flex-shrink: 0; }
.customer-link:hover { background: #fff; border-color: var(--c-primary); color: var(--c-primary); }
.customer-link:hover > svg { color: var(--c-primary); }

/* ==========================================================================
   Brands
   ========================================================================== */
.brands { padding: 56px 0 8px; }
.brands__title { text-align: center; color: var(--c-muted); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 22px; }
.brands__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.brand-tile {
	flex: 1 1 220px; max-width: 300px; min-height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	padding: 20px; border-radius: var(--radius); border: 1px solid var(--c-line); background: #fff; color: var(--c-dark); transition: all .15s;
}
a.brand-tile:hover { border-color: var(--c-primary); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--c-dark); }
.brand-tile img { max-height: 44px; width: auto; }
.brand-tile__name { font-family: var(--f-head); font-weight: 800; font-size: 1.7rem; letter-spacing: .06em; line-height: 1; color: var(--c-dark); }
.brand-tile__name--canon { letter-spacing: 0; font-style: italic; }
.brand-tile__sub { font-size: .8rem; color: var(--c-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }

/* ==========================================================================
   Solutions tabs
   ========================================================================== */
.tabs__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 6px; margin: 0 auto 36px; background: var(--c-light); border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs__tab {
	font-family: var(--f-head); font-weight: 700; font-size: .98rem; color: var(--c-muted);
	background: transparent; border: 0; padding: 11px 22px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.tabs__tab:hover { color: var(--c-dark); }
.tabs__tab[aria-selected="true"] { background: #fff; color: var(--c-primary); box-shadow: var(--shadow-sm); }
.tabs__panel { animation: dsotv-fade .3s ease; }
@keyframes dsotv-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.solution-card {
	display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius); background: #fff;
	border: 1px solid var(--c-line); color: var(--c-text); transition: all .2s; position: relative; overflow: hidden;
}
.solution-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.solution-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); color: var(--c-text); }
.solution-card:hover::after { transform: scaleX(1); }
.solution-card__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); margin-bottom: 18px; }
.solution-card__title { font-size: 1.15rem; margin-bottom: 8px; }
.solution-card__text { font-size: .95rem; color: var(--c-muted); margin-bottom: 18px; flex: 1; }
.solution-card__more { font-family: var(--f-head); font-weight: 700; font-size: .92rem; color: var(--c-primary); display: inline-flex; align-items: center; gap: 6px; }
.solution-card:hover .solution-card__more svg { transform: translateX(3px); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { background: var(--c-light); padding: 56px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.stats__grid { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 24px; }
.stat { text-align: center; padding: 8px 12px; }
.stat + .stat { border-left: 1px solid var(--c-line); }
.stat__num { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.3rem); color: var(--c-primary); line-height: 1.05; letter-spacing: -.02em; }
.stat__label { display: block; color: var(--c-muted); font-size: .95rem; margin-top: 8px; max-width: 220px; margin-left: auto; margin-right: auto; line-height: 1.45; }

/* ==========================================================================
   About split
   ========================================================================== */
.about-split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-split__media img { border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about-art {
	position: relative; aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden;
	background: radial-gradient(420px 300px at 20% 10%, rgba(11, 92, 171, .9), transparent 70%), linear-gradient(135deg, var(--c-dark), #123b70);
}
.about-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.about-art__card {
	position: absolute; background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-lg);
	display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; width: min(78%, 300px);
}
.about-art__card svg { grid-row: span 2; color: var(--c-primary); background: var(--c-primary-soft); padding: 10px; width: 52px; height: 52px; border-radius: 12px; }
.about-art__card strong { font-family: var(--f-head); color: var(--c-dark); font-size: 1.02rem; line-height: 1.2; }
.about-art__card span { color: var(--c-muted); font-size: .86rem; }
.about-art__card--a { top: 12%; left: 8%; }
.about-art__card--b { top: 40%; right: 7%; }
.about-art__card--c { bottom: 11%; left: 14%; }
.about-art__card--c svg { color: #1a1205; background: var(--c-accent); }

.checklist, .entry-content ul.is-style-checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li, .entry-content ul.is-style-checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before, .entry-content ul.is-style-checklist li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
	background: var(--c-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5cab' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ==========================================================================
   Service area
   ========================================================================== */
.area { background: var(--c-light); }
.area .section-head { margin-bottom: 36px; }
.area__icon { width: 56px; height: 56px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--c-accent); color: #1a1205; margin-bottom: 18px; }
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.offices--1 { grid-template-columns: minmax(0, 720px); justify-content: center; }
.office { background: #fff; border: 1px solid var(--c-line); border-top: 4px solid var(--c-primary); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow-sm); }
.office__name { font-size: 1.3rem; margin-bottom: 8px; }
.office__address { color: var(--c-muted); margin-bottom: 20px; padding-left: 14px; border-left: 3px solid var(--c-accent); }
.office__address a { color: var(--c-dark); font-weight: 600; }
.office__address a:hover { color: var(--c-primary); }
.area__cities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area__cities li { background: var(--c-light); border: 1px solid var(--c-line); padding: 7px 14px; font-size: .9rem !important; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--c-dark); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   Posts
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--c-primary-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--c-primary); background: linear-gradient(135deg, var(--c-primary-soft), #fff); }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__date { font-size: .82rem; color: var(--c-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.post-card__title { font-size: 1.18rem; margin-bottom: 8px; }
.post-card__title a { color: var(--c-dark); }
.post-card__title a:hover { color: var(--c-primary); }
.post-card__excerpt { color: var(--c-muted); font-size: .95rem; flex: 1; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--c-line); color: var(--c-dark); font-weight: 600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); color: #e6f0fb; padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -200px; border: 50px solid rgba(255, 255, 255, .07); }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band__title { color: #fff; margin-bottom: 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band__text { margin: 0; max-width: 620px; font-size: 1.08rem; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--c-dark); color: #b5c3d8; font-size: .96rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.site-footer .text-logo, .site-footer .text-logo__name { color: #fff; }
.site-footer .text-logo__mark { color: var(--c-primary); }
.site-footer .text-logo__tag { color: #8fa3c0; }
.footer-about { margin: 20px 0; max-width: 340px; }
.footer-title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 10px; }
.site-footer a { color: #b5c3d8; }
.site-footer a:hover { color: #fff; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; line-height: 1.5; }
.footer-contact svg { color: var(--c-accent); flex-shrink: 0; margin-top: 3px; }
.footer-loc { display: block; color: #fff; font-weight: 600; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.social-links a:hover { background: var(--c-accent); color: #1a1205; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.site-footer__bottom p { margin: 0; }
.footer-info-menu { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-banner {
	position: relative; color: #c9d6ea; padding: clamp(48px, 7vw, 84px) 0;
	background: radial-gradient(700px 300px at 90% 0%, rgba(11, 92, 171, .6), transparent 60%), linear-gradient(135deg, var(--c-dark), #0f2d57);
	overflow: hidden;
}
.page-banner::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -100px; bottom: -220px; border: 44px solid rgba(255, 255, 255, .05); }
.page-banner.has-image { background: linear-gradient(90deg, rgba(10, 31, 60, .92), rgba(10, 31, 60, .6)), var(--banner-img) center / cover no-repeat; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner__title { color: #fff; margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3rem); }
.page-banner__sub { font-size: 1.15rem; max-width: 720px; margin: 0; }
.breadcrumbs { font-size: .86rem; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; color: #8fa3c0; }
.breadcrumbs a { color: #c9d6ea; }
.breadcrumbs a:hover { color: #fff; }

.page-body { padding-top: clamp(40px, 6vw, 72px); }
.entry-content > *:first-child, .entry-content .wp-block-column > *:first-child, .dsotv-card > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.2em; }
.entry-content .wp-block-columns { gap: clamp(28px, 5vw, 64px); margin-bottom: 2em; }
.entry-content .wp-block-buttons { margin: 1.4em 0 1.6em; gap: 12px; }
.entry-content .has-text-align-center { text-align: center; }
.entry-content p.is-style-lead { font-size: 1.2rem; color: var(--c-muted); max-width: 820px; }
.entry-content .alignwide { max-width: var(--container); }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry-content--full > .alignfull:first-child { margin-top: 0; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { border-left: 4px solid var(--c-accent); margin: 1.5em 0; padding: 4px 0 4px 20px; font-size: 1.1rem; color: var(--c-dark); }
.entry-featured { margin: 0 0 28px; }
.entry-featured img { border-radius: var(--radius); width: 100%; }

.dsotv-card-grid, .dsotv-card-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 1.6em 0 2em; }
@media (min-width: 900px) {
	.dsotv-card-grid > .wp-block-group__inner-container:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); }
}
.dsotv-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px 26px; border-top: 4px solid var(--c-primary); transition: box-shadow .2s, transform .2s; }
.dsotv-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.dsotv-card h3 { margin-top: 0 !important; font-size: 1.2rem; }
.dsotv-card p { color: var(--c-muted); font-size: .97rem; }
.dsotv-card p:last-child { margin-bottom: 0; }
.dsotv-card .card-link a { font-family: var(--f-head); font-weight: 700; color: var(--c-primary); }

.dsotv-gallery, .dsotv-gallery > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 1.6em 0 2em; }
.dsotv-card-grid:has(> .wp-block-group__inner-container), .dsotv-gallery:has(> .wp-block-group__inner-container) { display: block; }
.dsotv-card-grid > .wp-block-group__inner-container, .dsotv-gallery > .wp-block-group__inner-container { margin: 0; }
.dsotv-card-grid > .wp-block-group__inner-container > *, .dsotv-gallery > .wp-block-group__inner-container > * { margin: 0 !important; }
.dsotv-gallery .wp-block-image { margin: 0; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.dsotv-gallery .wp-block-image:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.dsotv-gallery .wp-block-image img { border-radius: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dsotv-gallery figcaption { text-align: left; padding: 14px 18px 18px; margin: 0; font-size: .92rem; color: var(--c-muted); line-height: 1.45; }
.dsotv-gallery figcaption strong { color: var(--c-dark); font-size: 1.02rem; font-family: var(--f-head); }
.dsotv-callout { background: var(--c-light); border-radius: var(--radius); padding: 30px 30px 14px; border: 1px solid var(--c-line); position: relative; }
.dsotv-callout::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c-accent); }
.dsotv-callout h3 { margin-top: 0 !important; }
.dsotv-callout ol { padding-left: 1.2em; }
.dsotv-callout ol li { margin-bottom: 10px; }

.dsotv-cta-box { background: var(--c-dark); color: #c9d6ea; border-radius: 20px; padding: clamp(28px, 5vw, 48px); margin: 2em 0; }
.dsotv-cta-box h2 { color: #fff; margin-top: 0 !important; }
.dsotv-cta-box .is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .6); }

.dsotv-note { background: #fff7ec; border: 1px solid #f7d4ad; border-radius: 12px; padding: 16px 20px; color: #6b4210; }
.dsotv-note a { color: #9a4f00; font-weight: 700; }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.sidebar .widget { background: var(--c-light); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.sidebar .widget-title { font-size: 1.1rem; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid var(--c-line); }
.sidebar li:last-child { border-bottom: 0; }
.widget--cta { background: var(--c-dark) !important; color: #c9d6ea; }
.widget--cta .widget-title { color: #fff; }
.widget-phone { margin: 16px 0 0; }
.widget-phone a { color: #fff; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin: 48px 0 24px; padding-top: 24px; border-top: 1px solid var(--c-line); font-weight: 600; }
.empty-state { text-align: center; max-width: 640px; margin: 0 auto; }
.button-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; }
.search-form .search-submit { background: var(--c-primary); color: #fff; }

/* Contact card + map */
.contact-card { background: var(--c-light); border-radius: 20px; padding: 32px; border: 1px solid var(--c-line); }
.contact-card h3 { margin-top: 0 !important; }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-line); line-height: 1.45; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 42px; height: 42px; padding: 10px; flex-shrink: 0; border-radius: 10px; background: #fff; color: var(--c-primary); box-shadow: var(--shadow-sm); }
.contact-list span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 600; }
.contact-list a { font-weight: 600; color: var(--c-dark); }
.contact-list a:hover { color: var(--c-primary); }
.contact-card__quick p { margin-bottom: 10px; }
.contact-card__quick .btn { margin: 0 6px 8px 0; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 32px; }
.map-embed { border-radius: 20px; overflow: hidden; border: 1px solid var(--c-line); margin: 0; background: var(--c-light); }
.map-embed figcaption { padding: 14px 18px; font-size: .95rem; color: var(--c-muted); text-align: left; margin: 0; }
.map-embed figcaption strong { color: var(--c-dark); margin-right: 6px; }
.map-embed iframe { width: 100%; border: 0; display: block; }

/* ==========================================================================
   Forms
   ========================================================================== */
.dsotv-form-wrap { scroll-margin-top: 120px; }
.dsotv-form { background: #fff; border: 1px solid var(--c-line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-sm); }
.dsotv-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 24px; }
.dsotv-form .field--wide { grid-column: 1 / -1; }
.dsotv-form label, .dsotv-form legend { display: block; font-weight: 600; font-size: .92rem; color: var(--c-dark); margin-bottom: 6px; }
.dsotv-form fieldset { border: 0; padding: 0; margin: 0; }
.dsotv-form .req { color: var(--c-error); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--c-text); background: #fff;
	border: 1.5px solid #cdd7e4; border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(11, 92, 171, .14); }
.dsotv-form .help { display: block; color: var(--c-muted); font-size: .82rem; margin-top: 5px; }
.dsotv-form .checks { display: flex; flex-wrap: wrap; gap: 10px; }
.dsotv-form .check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; padding: 9px 14px; border: 1.5px solid #cdd7e4; border-radius: 999px; cursor: pointer; }
.dsotv-form .check:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); color: var(--c-primary); }
.dsotv-form .check input { accent-color: var(--c-primary); width: 16px; height: 16px; }
.dsotv-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { display: flex; gap: 14px; align-items: flex-start; border-radius: 14px; padding: 18px 22px; margin-bottom: 20px; }
.form-notice p { margin: 4px 0 0; }
.form-notice--success { background: #e9f7ef; border: 1px solid #b5e2c6; color: #145c33; }
.form-notice--success svg { color: var(--c-success); flex-shrink: 0; }
.form-notice--error { background: #fdecea; border: 1px solid #f5c2bc; color: #7d231a; }

/* Comments */
.comments-area { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--c-light); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }

/* WP core alignment helpers */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .86rem; color: var(--c-muted); text-align: center; margin-top: 8px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1500px) {
	.header-phone__text { display: none; }
}

@media (min-width: 1301px) and (max-width: 1380px) {
	.header-phone { display: none; }
}

@media (max-width: 1180px) {
	.primary-nav .menu > li > a { padding: 10px 9px; font-size: .95rem; }
	.card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1300px) {
	.customer-bar__inner { grid-template-columns: 1fr; }
	.nav-toggle { display: inline-flex; order: 3; margin-left: 0; }
	.site-header__actions { margin-left: auto; }
	.header-cta { display: none; }
	.primary-nav {
		position: fixed; left: 0; right: 0; top: var(--nav-top, 0); bottom: 0; margin: 0;
		background: #fff; overflow-y: auto; padding: 16px var(--gutter) 40px;
		opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; visibility: hidden; z-index: 40;
		border-top: 1px solid var(--c-line);
	}
	.nav-open .primary-nav { opacity: 1; transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--c-line); }
	.primary-nav .menu > li > a { flex: 1; padding: 16px 4px; font-size: 1.08rem; }
	.submenu-toggle { padding: 14px; }
	.primary-nav .sub-menu {
		position: static; min-width: 0; width: 100%; box-shadow: none; border: 0; border-radius: 0;
		opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 12px 12px;
	}
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: none; }
	.primary-nav li.is-open > .sub-menu { display: block; }
	.primary-nav__mobile-extra { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
}

@media (max-width: 1024px) {
	:root { --header-h: 72px; }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__art { max-width: 480px; margin: 0 auto; width: 100%; }
	.customer-bar__inner { grid-template-columns: 1fr; }
	.stats__grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
	.stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; }
	.stat:nth-child(3) { border-left: 0; }
	.about-split__inner { grid-template-columns: 1fr; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.layout-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
	.admin-bar.has-sticky-header .site-header { top: 0; }
	.topbar__msg { display: none; }
}

@media (max-width: 640px) {
	:root { --gutter: 16px; }
	body { font-size: 16px; }
	.topbar__inner { justify-content: center; }
	.topbar__nav { display: none; }
	.text-logo__name { font-size: .95rem; }
	.text-logo__tag { display: none; }
	.text-logo__mark svg { width: 34px; height: 34px; }
	.header-phone__icon { width: 38px; height: 38px; }
	.hero__actions .btn { width: 100%; }
	.hero__shapes span:last-child { display: none; }
	.site-header__inner { gap: 10px; }
	.site-brand { flex-shrink: 1; min-width: 0; }
	.site-header__actions { gap: 4px; }
	.customer-bar { margin-top: -64px; }
	.customer-bar__inner { padding: 22px 18px; }
	.customer-bar__links { grid-template-columns: 1fr; }
	.card-grid, .post-grid { grid-template-columns: 1fr; }
	.tabs__list { border-radius: 16px; width: 100%; }
	.tabs__tab { flex: 1 1 auto; padding: 10px 14px; font-size: .92rem; }
	.stats__grid { grid-template-columns: 1fr 1fr; gap: 28px 8px; }
	.stat { padding: 0 6px; }
	.stat + .stat { border-left: 0; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.dsotv-form__grid { grid-template-columns: 1fr; }
	.offices, .map-grid { grid-template-columns: 1fr; }
	.office { padding: 22px; }
	.cta-band__actions, .cta-band__actions .btn { width: 100%; }
	.about-art__card { width: 82%; padding: 14px; }
	.about-art__card--a { left: 5%; top: 7%; }
	.about-art__card--b { right: 5%; top: 37%; }
	.about-art__card--c { left: 8%; bottom: 7%; }
	.about-art__card svg { width: 44px; height: 44px; padding: 9px; }
	.contact-card { padding: 22px; }
}
