/*
Theme Name: E.H. and Associates (Block Theme)
Theme URI: https://edhoweandassociates.com
Author: E.H. and Associates, LLC
Description: Block theme for E.H. & Associates, LLC, Michigan industrial manufacturers' representatives. Every section is an editable block. Includes reusable section patterns, header and footer parts, and sets up the pages, navigation and articles when activated.
Version: 2.2.3
Requires at least: 6.5
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: eh-associates-blocks
*/

/* ---------- base ---------- */
html{scroll-behavior:smooth}
.wp-site-blocks{padding:0}
.wp-site-blocks img{max-width:100%;height:auto}
h1,h2,h3,h4,blockquote{text-wrap:balance}
p,li{text-wrap:pretty}
:focus-visible{outline:3px solid #991b1b;outline-offset:2px}
.wp-block-post-content>*:not(.alignfull){padding-left:4%;padding-right:4%;box-sizing:border-box}

/* ---------- header ---------- */
.eh-site-header{position:sticky;top:0;z-index:999}
.admin-bar .eh-site-header{top:32px}
@media(max-width:782px){.admin-bar .eh-site-header{top:46px}}
.wp-block-group.eh-site-nav{padding:12px 5%;background:#fff;border-bottom:3px solid #991b1b;box-shadow:0 3px 14px rgba(15,23,42,.12);gap:12px 22px;align-items:center}
.eh-nav-brand{gap:10px;align-items:center}
.eh-nav-logo{margin:0}
.eh-nav-logo img{width:48px;height:48px;object-fit:contain;display:block}
.eh-nav-title,.eh-nav-title a{margin:0;font-size:17px;font-weight:800;color:#111827;text-decoration:none;white-space:nowrap}
.eh-nav .wp-block-navigation-item__content{font-size:14px;font-weight:700;color:#374151;text-decoration:none}
.eh-nav .wp-block-navigation-item__content:hover{color:#991b1b}
.eh-nav .eh-nav-contact .wp-block-navigation-item__content{background:#991b1b;color:#fff;padding:9px 13px;border-radius:4px}
.eh-nav .eh-nav-contact .wp-block-navigation-item__content:hover{background:#7f1d1d;color:#fff}
.eh-nav .wp-block-navigation__responsive-container-open{color:#991b1b}

/* ---------- shared pieces ---------- */
.eh-section{padding:64px 4%}
.eh-band{background:#f3f4f6}
.eh-section h2{font-size:clamp(26px,3.4vw,34px);text-align:center;color:#7f1d1d;margin:0 0 12px}
.eh-section .eh-lead{text-align:center;max-width:820px;margin:0 auto 34px;color:#52606d;font-size:18px}
.eh-section .eh-subhead{text-align:center;color:#7f1d1d;font-size:27px;margin:52px 0 8px}
p.eyebrow{margin:0;font-size:14px;letter-spacing:1.5px;text-transform:uppercase;font-weight:800}
.wp-block-buttons{gap:10px;margin:0}
.wp-block-button .wp-block-button__link{font-size:16px;font-weight:700;padding:13px 22px;border-radius:4px;text-decoration:none;border:2px solid transparent}
.wp-block-button.eh-btn-light .wp-block-button__link{background:#fff;color:#991b1b;border-color:#fff}
.wp-block-button.eh-btn-alt .wp-block-button__link{background:transparent;color:#fff;border-color:#fff}
.wp-block-button.eh-btn-alt .wp-block-button__link:hover{background:rgba(255,255,255,.14)}
.wp-block-button.eh-btn-red .wp-block-button__link{background:#991b1b;color:#fff;border-color:#991b1b}
.wp-block-button.eh-btn-red .wp-block-button__link:hover{background:#7f1d1d;border-color:#7f1d1d}
.eh-center .wp-block-buttons{justify-content:center}

/* ---------- hero ---------- */
.wp-block-group.eh-hero{background:linear-gradient(120deg,#7f1d1d 0%,#b91c1c 58%,#374151 58%,#111827 100%);color:#fff;padding:78px 4%}
.eh-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) 280px;gap:36px;align-items:center}
.eh-hero h1{font-size:clamp(32px,4.2vw,48px);line-height:1.08;margin:14px 0;color:#fff;max-width:820px}
.eh-hero .eh-hero-copy p{color:#fff;font-size:20px;max-width:760px;margin:0 0 28px}
.eh-hero .eh-hero-copy p.eyebrow{font-size:14px;margin:0;opacity:.9}
.eh-logo-panel{background:#fff;padding:24px 22px 20px;border-radius:8px;box-shadow:0 8px 26px rgba(0,0,0,.24);text-align:center}
.eh-logo-panel .wp-block-image{margin:0 0 15px}
.eh-logo-panel img{display:block;width:100%;max-width:210px;height:auto;margin:0 auto}
.eh-hero .eh-logo-panel p{margin:0;color:#1f2933;font-size:16px;line-height:1.35;font-weight:800}

/* ---------- page banner ---------- */
.wp-block-group.eh-page-head{background:#111827;color:#fff;padding:54px 4%;border-bottom:5px solid #991b1b}
.wp-block-group.eh-page-head>*{margin-left:0!important;margin-right:0!important}
.eh-page-head h1{margin:6px 0 10px;font-size:clamp(30px,4vw,42px);line-height:1.1;color:#fff}
.eh-page-head p{margin:0;max-width:760px;color:#d1d5db;font-size:18px}
.eh-page-head p.eyebrow{color:#fca5a5;font-size:14px}

/* ---------- cards and grids ---------- */
.eh-grid,.eh-orgs,.eh-events,.eh-team,.eh-process,.eh-link-grid,.eh-greg-links,.eh-contact-cards,.eh-posts{display:grid;gap:22px}
.eh-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.eh-orgs{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.eh-events{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.eh-team{grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}
.eh-process{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 50px}
.eh-link-grid,.wp-block-post-template.eh-posts{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.eh-greg-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}
.eh-contact-cards{grid-template-columns:repeat(2,minmax(0,1fr));max-width:900px;margin:0 auto}
.wp-block-post-template.eh-posts{list-style:none;padding:0;margin:0}
.eh-card{background:#fff;border:1px solid #d9e2ec;border-top:4px solid #991b1b;border-radius:6px;padding:24px;box-shadow:0 5px 18px rgba(15,23,42,.07)}
.eh-card h3{margin:0 0 9px;font-size:20px;color:#1f2933}
.eh-card p{margin:0 0 12px}
.eh-what .eyebrow{color:#991b1b;font-weight:900}
.eh-section.eh-what h2{text-align:left;color:#111827;font-size:clamp(30px,4vw,42px);line-height:1.08;max-width:850px;margin:8px 0 14px!important}
.eh-section.eh-what .eh-lead{text-align:left;margin:0 0 34px!important;max-width:850px}
.eh-what .eh-card{border-top:1px solid #d9e2ec;box-shadow:none;min-height:210px}

/* ---------- president ---------- */
.eh-greg{display:grid;grid-template-columns:190px minmax(0,1fr);gap:32px;align-items:center;background:#111827;color:#fff;border-radius:8px;padding:38px}
.eh-greg-photo{margin:0}
.eh-greg-photo img{width:190px;height:230px;object-fit:contain;object-position:center top;background:#fff;border-radius:6px;display:block}
.eh-section .eh-greg h2{color:#fff;text-align:left;margin:8px 0 14px}
.eh-greg p{color:#dbe2ea;font-size:17px;margin:0 0 14px}
.eh-greg p.eyebrow{color:#fca5a5;font-size:14px;margin:0}
.eh-greg-perspective{margin-top:38px;padding:8px 0 4px}
.eh-section .eh-greg-perspective .eh-subhead{margin-top:18px}

/* ---------- article cards, steps ---------- */
.eh-article-link{position:relative;background:#fff;border:1px solid #d9e2ec;border-top:4px solid #991b1b;border-radius:7px;padding:24px;box-shadow:0 5px 18px rgba(15,23,42,.07)}
.eh-article-link:hover{border-top-color:#111827}
.eh-article-link .tag,.eh-article .tag,.eh-article-link .tag a,.eh-article .tag a{color:#991b1b;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.8px;text-decoration:none;margin:0}
.eh-article-link h3{margin:8px 0;font-size:20px;color:#111827}
.eh-article-link h3 a{color:#111827;text-decoration:none}
.eh-article-link p{color:#52606d;margin:0 0 10px}
.eh-article-link .wp-block-post-excerpt__excerpt{margin:0 0 10px}
.eh-article-link .eh-more{font-weight:800;color:#991b1b;margin:0}
.eh-more a,.eh-step-link a{color:#991b1b;text-decoration:none}
.eh-more a::after,.eh-step-link a::after,.eh-posts .wp-block-post-title a::after{content:"";position:absolute;inset:0}
.eh-step{position:relative;background:#111827;color:#fff;padding:22px;border-radius:7px;border-bottom:4px solid #991b1b}
.eh-step p{color:#fff;margin:0}
.eh-step p.eh-step-num{color:#fca5a5;font-size:13px;font-weight:800}
.eh-step h3{color:#fff;font-size:19px;margin:5px 0}
.eh-step p.eh-step-link{margin-top:12px;font-weight:700}
.eh-step .eh-step-link a{color:#f3c4c4}

/* ---------- line card ---------- */
.wp-block-image.eh-logo{width:100%;height:120px;margin:0 0 16px;display:flex!important;align-items:center;justify-content:center;background:#fff;border:1px solid #eef2f7;border-radius:4px;padding:10px;box-sizing:border-box;overflow:hidden}
.wp-block-image.eh-logo img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain;object-position:center;display:block;margin:0;padding:0;background:transparent}
p.eh-wordmark{height:120px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:26px;line-height:1;font-weight:900;color:#111827;background:#f3f4f6;border-radius:4px;margin:0 0 16px}
.eh-textlink a{font-weight:700;text-decoration:none}
.eh-textlink a:hover{text-decoration:underline}

/* ---------- industry ---------- */
.eh-org{text-align:center;background:#fff;border:1px solid #d9e2ec;border-radius:7px;padding:24px}
.eh-org p.abbr{font-size:30px;font-weight:900;color:#991b1b;margin:0 0 8px}
.eh-org h3{font-size:17px;min-height:52px;margin:0 0 8px}
.eh-org p{margin:0 0 10px}
.eh-org a{font-weight:700}
.eh-event{background:#111827;color:#fff;border-radius:7px;padding:24px}
.eh-event h3{color:#fff;font-size:20px;margin:6px 0}
.eh-event p{color:#d1d5db;margin:0 0 10px}
.eh-event p.eh-date{color:#fca5a5;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.7px;margin:0}
.eh-event a{color:#fff;font-weight:700}

/* ---------- team ---------- */
.eh-person{text-align:center;background:#fff;border:1px solid #d9e2ec;border-radius:7px;padding:16px 10px}
.eh-avatar{margin:0 0 13px}
.wp-block-image.eh-avatar img{width:100%!important;max-width:100%!important;height:178px!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center center;background:#eef2f7;border:1px solid #d9e2ec;border-radius:5px;display:block}
.eh-person h3{font-size:17px;margin:0 0 3px;color:#111827}
.eh-person p.eh-role{margin:0 0 10px;font-size:14px;color:#64748b}
.eh-person p{margin:4px 0;font-size:13px;word-break:break-word}

/* ---------- contact banner ---------- */
.eh-cta{background:#111827;color:#fff;border-radius:8px;padding:44px 6%;display:flex;gap:28px;align-items:center;justify-content:space-between}
.eh-section .eh-cta h2{color:#fff;text-align:left;margin:0 0 8px;font-size:34px}
.eh-cta p{margin:0 0 6px;color:#d1d5db}
.eh-cta p.eh-contact-direct a{color:#fff;font-weight:700}

/* ---------- single article ---------- */
.wp-block-group.eh-article{padding:54px 4% 70px}
.eh-article h1.wp-block-post-title{font-size:clamp(28px,4vw,38px);line-height:1.12;color:#111827;margin:8px 0 26px}
.eh-article .wp-block-post-content p{font-size:18px;margin:0 0 16px}
.eh-article .wp-block-post-content h2{font-size:23px;color:#7f1d1d;margin:34px 0 8px;text-align:left}
.eh-article .wp-block-post-content blockquote.wp-block-quote{margin:24px 0;padding:14px 20px;border:0;border-left:5px solid #991b1b;background:#fff7f7;color:#374151;font-size:19px;font-weight:700}
.eh-article .wp-block-post-content blockquote.wp-block-quote p{margin:0;font-size:inherit}
.eh-article .wp-block-post-content{padding:0}
.eh-article .wp-block-post-content>*{padding-left:0;padding-right:0}
.eh-contact-box{background:#f3f4f6;border-radius:6px;padding:22px;margin-top:36px}
.eh-contact-box p{margin:0 0 4px;font-size:16px}
.eh-back{margin-top:22px;font-weight:700}
.eh-back a{text-decoration:none}

/* ---------- posts list ---------- */
.wp-block-query-pagination{justify-content:center;gap:14px;margin-top:28px}

/* ---------- footer ---------- */
.wp-block-group.eh-site-footer{background:#111827;color:#d1d5db;padding:34px 4%;border-top:5px solid #991b1b;font-size:15px}
.eh-footer-inner{gap:12px 30px;align-items:center}
.eh-footer-inner p{margin:0}
.eh-site-footer a{color:#fff;font-weight:700}

/* ---------- responsive ---------- */
@media(max-width:950px){
	.eh-what .eh-card{min-height:0}
	.eh-grid,.eh-events,.eh-orgs,.eh-process{grid-template-columns:repeat(2,minmax(0,1fr))}
	.eh-team{grid-template-columns:repeat(2,minmax(0,1fr))}
	.eh-link-grid,.wp-block-post-template.eh-posts{grid-template-columns:1fr}
}
@media(max-width:850px){.eh-greg-links{grid-template-columns:1fr}}
@media(max-width:780px){.eh-hero-grid{grid-template-columns:1fr;gap:30px}.eh-logo-panel{max-width:240px}}
@media(max-width:620px){
	.eh-grid,.eh-events,.eh-orgs,.eh-team,.eh-process,.eh-contact-cards{grid-template-columns:1fr}
	.eh-greg{grid-template-columns:1fr;padding:26px}.eh-greg-photo img{margin:auto}
	.eh-cta{display:block}.eh-cta .wp-block-buttons{margin-top:20px}
	.wp-block-image.eh-avatar img{height:260px!important}
	.wp-block-button .wp-block-button__link{display:block;text-align:center}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* dropdown menus */
.eh-nav .wp-block-navigation__submenu-container{padding:6px 0;border:1px solid #d9e2ec;box-shadow:0 8px 22px rgba(15,23,42,.12);min-width:260px}
.eh-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content{padding:9px 16px;font-weight:600}
.eh-nav .wp-block-navigation-item.has-child>.wp-block-navigation-item__content{padding-right:2px}
.eh-tile h3{margin-bottom:8px}

/* header menu spacing */
.eh-nav .wp-block-navigation__container{gap:6px 26px!important;align-items:center}
.eh-nav .wp-block-navigation-item{margin:0}
.eh-nav .wp-block-navigation-item.has-child>.wp-block-navigation-item__content{margin-right:4px}
.eh-nav .wp-block-navigation__submenu-icon{margin-left:5px}
.eh-nav .eh-nav-contact{margin-left:6px}
.eh-nav-title a{color:#111827;text-decoration:none}

.eh-hero .eh-logo-panel p{white-space:nowrap}
@media(max-width:380px){.eh-hero .eh-logo-panel p{white-space:normal}}
