/*
Theme Name: Hermes Auto
Description: Lightweight, mobile-friendly theme for Hermes Auto & Upholstery, Inc. Pairs with the Hermes Vehicle Inventory plugin.
Version: 1.9.1
Requires at least: 6.4
Requires PHP: 7.4
Author: Hermes Auto & Upholstery, Inc.
License: GPL-2.0-or-later
Text Domain: hermes
*/

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/barlow-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/barlow-semi-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/barlow-semi-condensed-latin-800-normal.woff2) format("woff2"); }

/* Colors pulled from the Hermes logo: logo blue, black, white. */
:root {
	--hc-accent: #005ca8;
	--hc-accent-dark: #00427a;
	--hc-accent-soft: #8cc4f2;
	--hc-ink: #111418;
	--hc-muted: #545c66;
	--hc-bg: #f4f6f9;
	--hc-bg-alt: #e6ecf3;
	--hc-surface: #ffffff;
	--hc-line: #d9e0e8;
	--hc-dark: #0b0d10;
	--hc-wide: 1180px;
	--hc-narrow: 760px;
	--hc-head: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
	--hc-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--hc-bg); color: var(--hc-ink); font: 18px/1.6 var(--hc-body); }
img { max-width: 100%; height: auto; }
a { color: var(--hc-accent); text-underline-offset: 2px; }
a:hover { color: var(--hc-accent-dark); }
h1, h2, h3, h4 { font-family: var(--hc-head); font-weight: 800; letter-spacing: -.005em; line-height: 1.12; color: var(--hc-ink); margin: 1.4em 0 .5em; }
h1 { font-size: clamp(30px, 4.2vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 21px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 14px; background: #fff; }
.wrap { max-width: var(--hc-wide); margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--hc-dark); color: #d9dadb; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.site-header { background: var(--hc-surface); border-bottom: 3px solid var(--hc-accent); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding-top: 8px; padding-bottom: 8px; transition: padding .2s ease; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; text-decoration: none; color: var(--hc-ink); }
/* Logo: large at the top of the page, shrinks once the visitor scrolls so the sticky header stays compact. */
.brand img { display: block; height: 150px; width: auto; max-height: none; transition: height .2s ease; }
.site-header.is-scrolled .brand img { height: 84px; }
.site-header.is-scrolled .wrap { padding-top: 4px; padding-bottom: 4px; }
@media (max-width: 600px) { .brand img { height: 110px; } .site-header.is-scrolled .brand img { height: 64px; } }
@media (prefers-reduced-motion: reduce) { .brand img, .site-header .wrap { transition: none; } }
.brand-name { font-family: var(--hc-head); font-weight: 800; font-size: 20px; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--hc-body); font-weight: 500; font-size: 13px; color: var(--hc-muted); }

.nav-toggle { display: none; padding: 8px 12px; border: 2px solid var(--hc-ink); border-radius: 6px; background: none; font: inherit; font-weight: 700; color: var(--hc-ink); cursor: pointer; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 2px; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 10px 9px; white-space: nowrap; color: var(--hc-ink); text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 6px; }
.primary-nav a:hover, .primary-nav .current_page_item > a, .primary-nav .current-menu-item > a, .primary-nav .current_page_ancestor > a { color: var(--hc-accent); background: var(--hc-bg); }
.primary-nav ul ul { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 6px; background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.primary-nav li:hover > ul, .primary-nav li:focus-within > ul { display: block; }

@media (max-width: 1140px) {
	.nav-toggle { display: block; }
	.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--hc-surface); border-bottom: 3px solid var(--hc-accent); padding: 8px 16px 16px; }
	.primary-nav.is-open { display: block; }
	.primary-nav > ul { flex-direction: column; }
	.primary-nav ul ul { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.primary-nav a { padding: 12px 8px; font-size: 17px; }
}

/* ---------- Content pages ---------- */
.page-hero { background: var(--hc-dark) linear-gradient(100deg, var(--hc-dark) 55%, var(--hc-accent-dark)); color: #fff; padding: 40px 0 36px; border-bottom: 4px solid var(--hc-accent); }
.page-hero h1 { color: #fff; margin: 0; }
.entry { max-width: var(--hc-narrow); margin: 0 auto; padding: 32px 16px 64px; }
.entry > :first-child { margin-top: 0; }
.entry ul { padding-left: 1.2em; }
.entry li { margin: .25em 0; }
.entry img { border-radius: 8px; }
.entry .alignright { float: right; margin: 0 0 16px 24px; max-width: 45%; }
.entry .alignleft { float: left; margin: 0 24px 16px 0; max-width: 45%; }
.entry::after { content: ""; display: table; clear: both; }
.entry .wp-block-columns { gap: 24px; }
.entry .wp-block-button__link { background: var(--hc-accent); border-radius: 6px; font-weight: 700; }
.entry iframe { max-width: 100%; border: 0; border-radius: 8px; }
.entry .wp-block-embed iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; }
.callout { margin: 28px 0; padding: 18px 20px; background: var(--hc-surface); border-left: 5px solid var(--hc-accent); border-radius: 6px; }
.callout p { margin: 0; }
.service-list { column-gap: 32px; }
.service-list:has(> li:nth-child(4)) { columns: 2 240px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 24px 0; }
.logo-row img { max-height: 70px; width: auto; border-radius: 0; }
@media (max-width: 600px) {
	.entry .alignright, .entry .alignleft { float: none; margin: 0 0 16px; max-width: 100%; }
}

/* ---------- Front page ---------- */
.hero { position: relative; background: var(--hc-dark); color: #fff; overflow: hidden; }
.hero { border-bottom: 6px solid var(--hc-accent); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 90% at 88% 50%, rgba(0,92,168,.55), transparent 70%), repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 18px); }
.hero .wrap { position: relative; padding-top: 64px; padding-bottom: 64px; }
.hero-eyebrow { margin: 0 0 12px; color: var(--hc-accent-soft); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.hero h1 { color: #fff; margin: 0 0 16px; max-width: 20ch; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(34px, 5.4vw, 58px); }
.hero p.lead { max-width: 52ch; margin: 0 0 28px; font-size: 19px; color: #e4e5e6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 6px; background: var(--hc-accent); color: #fff !important; font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--hc-accent-dark); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); }
.btn-ghost:hover { background: #fff; color: var(--hc-ink) !important; }

.section { padding: 56px 0; }
.section-alt { background: var(--hc-bg-alt); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.service { display: flex; flex-direction: column; padding: 22px; background: var(--hc-surface); border: 1px solid var(--hc-line); border-top: 4px solid var(--hc-accent); border-radius: 8px; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.service:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); color: inherit; }
.service h3 { margin: 0 0 6px; }
.service p { margin: 0 0 14px; color: var(--hc-muted); font-size: 16px; }
.service span { margin-top: auto; color: var(--hc-accent); font-weight: 700; font-size: 15px; }
.home-intro { max-width: var(--hc-narrow); }
.home-intro > :first-child { margin-top: 0; }

.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.visit h2 { margin-top: 0; }
.visit dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.visit dt { font-weight: 700; }
.visit dd { margin: 0; }
.visit iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 10px; }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--hc-dark); color: #c9cbcd; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px 40px; padding-top: 44px; padding-bottom: 24px; }
.site-footer h2 { color: #fff; font-size: 18px; margin: 0 0 10px; }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #9a9da1; }
@media (max-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Blog/index fallback ---------- */
.post-list { max-width: var(--hc-narrow); margin: 0 auto; padding: 32px 16px 64px; }
.post-list article { padding: 20px 0; border-bottom: 1px solid var(--hc-line); }
.post-list h2 { margin: 0 0 6px; font-size: 24px; }

/* ---------- Content blocks (v2 copy) ---------- */
.entry .lead { font-size: 21px; line-height: 1.5; color: var(--hc-ink); font-weight: 600; }
.entry h3 { margin-top: 1.6em; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 24px 0; }
.feature { padding: 18px 18px 16px; background: var(--hc-surface); border: 1px solid var(--hc-line); border-top: 4px solid var(--hc-accent); border-radius: 8px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; font-size: 16px; color: var(--hc-muted); }
.entry ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0 28px; }
.entry ol.steps li { counter-increment: step; position: relative; padding: 4px 0 14px 52px; margin: 0; }
.entry ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--hc-accent); color: #fff; font: 800 18px/36px var(--hc-head); text-align: center; }
.entry ol.steps li strong { display: block; }
details.faq { margin: 0 0 10px; background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: 8px; }
details.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; font-weight: 700; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 800 24px/1 var(--hc-head); color: var(--hc-accent); }
details.faq[open] summary::after { content: "\2212"; }
details.faq > p { margin: 0; padding: 0 18px 16px; color: var(--hc-muted); }
.cta-band { margin: 40px 0 0; padding: 26px 24px; background: var(--hc-dark) linear-gradient(100deg, var(--hc-dark) 50%, var(--hc-accent-dark)); color: #e7ebf0; border-radius: 10px; }
.cta-band h3 { color: #fff; margin: 0 0 6px; font-size: 24px; }
.cta-band p { margin: 0 0 14px; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.btn-outline { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.btn-outline:hover { background: #fff; color: var(--hc-ink) !important; }
.entry .btn { text-decoration: none; }

/* Homepage facts strip */
.facts { background: var(--hc-surface); border-bottom: 1px solid var(--hc-line); }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.facts li { padding: 20px 16px; text-align: center; border-left: 1px solid var(--hc-line); }
.facts li:first-child { border-left: 0; }
.facts strong { display: block; font: 800 28px/1.1 var(--hc-head); color: var(--hc-accent); }
.facts span { font-size: 15px; color: var(--hc-muted); }
.section-head p { margin: 0; color: var(--hc-muted); }
@media (max-width: 700px) {
	.facts li { padding: 16px 8px; }
	.facts strong { font-size: 22px; }
	.facts span { font-size: 13px; }
}

/* ---------- v3: hero art, image tiles, notice bar, storage ---------- */
.notice-bar { background: var(--hc-accent); color: #fff; font-weight: 600; font-size: 15px; text-align: center; }
.notice-bar .wrap { padding-top: 8px; padding-bottom: 8px; }
.hero-split .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.hero-art { margin: 0; justify-self: center; max-width: 440px; padding: 14px; background: #fff; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 0 6px var(--hc-accent); transform: rotate(-2.5deg); }
.hero-art img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
	.hero-split .wrap { grid-template-columns: 1fr; gap: 28px; }
	.hero-art { max-width: 340px; transform: rotate(-1.5deg); }
}
.service.has-img { padding-top: 0; overflow: hidden; }
.service .service-img { display: block; margin: 0 -22px 16px; aspect-ratio: 16 / 9; background: var(--hc-bg-alt); overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.service:hover .service-img img { transform: scale(1.04); }
.service .more { margin-top: auto; color: var(--hc-accent); font-weight: 700; font-size: 15px; }
.site-footer .pay, .site-footer .sister { font-size: 14px; color: #9aa3ad; }
.docs-wordmark { display: inline-flex; align-items: baseline; gap: 10px; margin: 0 0 18px; padding: 14px 20px; background: var(--hc-dark); border-radius: 8px; border-left: 6px solid var(--hc-accent); }
.docs-wordmark b { font: 800 34px/1 var(--hc-head); color: #fff; letter-spacing: .01em; }
.docs-wordmark span { font: 700 16px/1 var(--hc-head); color: var(--hc-accent-soft); text-transform: uppercase; letter-spacing: .12em; }
.docs-logo img { max-width: 320px; height: auto; border-radius: 0; }
/* Classic themes wrap group blocks in an inner container; let grids see the cards. */
.feature-grid > .wp-block-group__inner-container { display: contents; }
.feature > .wp-block-group__inner-container > :first-child,
.cta-band > .wp-block-group__inner-container > :first-child,
.callout > .wp-block-group__inner-container > :first-child { margin-top: 0; }
.feature > .wp-block-group__inner-container > :last-child,
.callout > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.service .service-badge { display: flex; align-items: center; justify-content: center; background: var(--hc-dark) linear-gradient(120deg, var(--hc-dark) 40%, var(--hc-accent)); color: #fff; font: 800 30px/1 var(--hc-head); text-transform: uppercase; letter-spacing: .04em; }
.building-photo { margin: 0 0 28px; }
.building-photo img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.building-photo-wide img { aspect-ratio: 21 / 9; object-fit: cover; }
.docs-logo img { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 0 18px; }

/* ---------- v5: link cards, social band ---------- */
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 20px 0 28px; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--hc-surface); border: 1px solid var(--hc-line); border-left: 4px solid var(--hc-accent); border-radius: 8px; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.link-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.08); transform: translateY(-2px); color: inherit; }
.link-card strong { font: 800 19px/1.2 var(--hc-head); color: var(--hc-ink); }
.link-card span { font-size: 16px; color: var(--hc-muted); }
.link-card em { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 700; font-size: 15px; color: var(--hc-accent); }
.social-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; margin: 20px 0 32px; padding: 22px; background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: 10px; }
.social-copy h3 { margin-top: 0; }
.social-copy .btn { background: #1877f2; }
.social-copy .btn:hover { background: #0f5fcc; }
.fb-embed iframe { width: 100%; max-width: 500px; height: 640px; border-radius: 8px; }
.callout.signup .btn { margin-left: 8px; }
@media (max-width: 760px) { .social-band { grid-template-columns: 1fr; } }
/* Four cards read better as 2 x 2 than 3 + 1 */
.link-cards:has(> .link-card:nth-child(4):last-child),
.feature-grid:has(> .wp-block-group__inner-container > .feature:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) {
	.link-cards:has(> .link-card:nth-child(4):last-child),
	.feature-grid:has(> .wp-block-group__inner-container > .feature:nth-child(4):last-child) { grid-template-columns: 1fr; }
}

/* Featured event */
.event-feature { margin: 24px 0 32px; padding: 24px; background: #fff; border: 1px solid var(--hc-line); border-top: 6px solid #5b2d8e; border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.06); }
.event-kicker { margin: 0 0 4px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #5b2d8e; }
.event-feature h3 { margin: 0 0 10px; font-size: 26px; }
.event-days { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 16px 0; }
.event-days h4 { margin: 0 0 8px; font-size: 18px; color: var(--hc-accent); }
.event-days p { margin: 0 0 12px; font-size: 16px; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.btn-outline-dark { background: transparent; color: var(--hc-ink) !important; box-shadow: inset 0 0 0 2px var(--hc-ink); }
.btn-outline-dark:hover { background: var(--hc-ink); color: #fff !important; }
@media (max-width: 640px) { .event-days { grid-template-columns: 1fr; } }

/* Brand bands (Cooper, ACDelco) and logo tiles */
.brand-band { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; margin: 18px 0 24px; padding: 22px; background: var(--hc-surface); border: 1px solid var(--hc-line); border-left: 6px solid var(--hc-accent); border-radius: 10px; }
.brand-band img { width: 100%; height: auto; border-radius: 0; }
.brand-band p { margin: 0 0 12px; }
.brand-band p:last-child { margin-bottom: 0; }
.service .service-img.is-logo { background: #fff; display: flex; align-items: center; justify-content: center; padding: 18px 28px; border-bottom: 1px solid var(--hc-line); }
.service .service-img.is-logo img { object-fit: contain; height: 100%; width: auto; max-width: 100%; }
@media (max-width: 640px) { .brand-band { grid-template-columns: 1fr; } .brand-band img { max-width: 180px; } }
