/*
Theme Name: Single page
Theme URI: 
Author: JCMTechConnectSolutions,llc
Author URI: 
Description: Single page for basic website.
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 7.4
Version: 2.5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: single-page
Tags: 
*/

/* =============================================
   ECCREDHH – Custom Theme Styles
   ============================================= */

/* Self-hosted Poppins (latin) — no external font requests (GDPR) */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/poppins-300.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/poppins-400.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/poppins-500.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/poppins-600.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/poppins-700.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/poppins-800.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
	--primary-color: #0f2c4c;
	--primary-light: #1a3b60;
	--accent-color: #c62828;
	--accent-hover: #b71c1c;
	--text-dark: #333333;
	--text-light: #666666;
	--bg-light: #f4f7f6;
	--white: #ffffff;
	--border-radius: 8px;
	--transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

img { max-width: 100%; height: auto; }

a { transition: var(--transition); }

/* Skip to content — accessibility */
.eccredhh-skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	background: var(--accent-color);
	color: var(--white);
	padding: 8px 18px;
	border-radius: 0 0 6px 6px;
	z-index: 9999;
	font-weight: 600;
	transition: top 0.2s;
}
.eccredhh-skip-link:focus { top: 0; color: var(--white); }

/* --- SECTION TITLE UNDERLINE --- */
.eccredhh-section-title {
	font-size: 2.2rem;
	color: var(--primary-color);
	position: relative;
	display: block;
	margin-bottom: 1rem;
}
.eccredhh-section-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	background: var(--accent-color);
	margin: 10px 0 0;
	border-radius: 2px;
}
.has-text-align-center.eccredhh-section-title::after {
	margin-left: auto;
	margin-right: auto;
}

/* --- BUTTONS --- */
.eccredhh-btn {
	display: inline-block;
	padding: 12px 30px;
	background-color: var(--accent-color);
	color: var(--white) !important;
	font-weight: 600;
	border-radius: 50px;
	border: 2px solid var(--accent-color);
	cursor: pointer;
	font-size: 1rem;
	transition: var(--transition);
}
.eccredhh-btn:hover {
	background-color: var(--accent-hover);
	border-color: var(--accent-hover);
	transform: translateY(-2px);
}
.eccredhh-btn-outline {
	background-color: transparent;
	color: var(--white) !important;
	border-color: var(--white);
}
.eccredhh-btn-outline:hover {
	background-color: var(--white);
	color: var(--primary-color) !important;
}

/* --- HEADER --- */
.wp-block-template-part[data-area="header"] header,
.eccredhh-header {
	background-color: var(--white);
	height: 80px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	/* Sticky is handled by the parent <header.wp-block-template-part>;
	   override the WordPress block's inline `position:sticky; top:0` */
	position: relative !important;
	top: auto !important;
	z-index: 1;
}
/*
 * Apply sticky to the <header> template-part wrapper.
 * Its containing block is .wp-site-blocks (full page height), so the
 * element can properly stick at the viewport top throughout the scroll,
 * unlike .eccredhh-header whose container is only 80 px tall.
 */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--white);
}
/* Offset below WP admin bar when logged in (admin-bar class is on body, not html) */
body.admin-bar header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}
.eccredhh-logo img {
	height: 60px;
	width: auto;
	object-fit: contain;
}
.eccredhh-nav a {
	font-weight: 600;
	color: var(--primary-color);
	text-transform: uppercase;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
}
.eccredhh-nav a:hover { color: var(--accent-color); }

/* --- HERO SECTION --- */
/* On the front page, wp:post-content renders a whitespace text node before the
   first block, creating an ~26px anonymous inline box. Collapse it by zeroing
   the font-size on the container, then reset on each direct block child.       */
body.home .wp-block-post-content {
	font-size: 0;
	line-height: 0;
	margin-block-start: 0 !important;
}
body.home .wp-block-post-content > * {
	font-size: var(--wp--preset--font-size--normal, 1rem);
	line-height: var(--wp--custom--line-height--body, 1.6);
	margin-block-start: 0 !important;
}
/* Fallback background ensures solid navy when no cover image is set */
.eccredhh-hero {
	background-color: var(--primary-color);
	min-height: 100vh;
	text-align: center;
	padding: 0;
}
.eccredhh-hero .wp-block-cover__inner-container {
	padding: 120px 20px 80px;
	width: 100%;
}
.eccredhh-hero-inner { max-width: 900px; margin: 0 auto; }
.eccredhh-hero h1 {
	font-size: 3.5rem;
	font-weight: 800;
	color: var(--white);
	line-height: 1.2;
	margin-bottom: 20px;
}
.eccredhh-hero h1 span { color: var(--accent-color); }
.eccredhh-hero p {
	font-size: 1.2rem;
	color: rgba(255,255,255,0.9);
	max-width: 800px;
	margin: 0 auto 30px;
}

/* Hero Cards */
.eccredhh-hero-cards {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 40px;
	flex-wrap: wrap;
}
.eccredhh-hero-card {
	background: rgba(255,255,255,0.1);
	backdrop-filter: blur(5px);
	padding: 20px;
	border-radius: var(--border-radius);
	border: 1px solid rgba(255,255,255,0.2);
	max-width: 300px;
	text-align: left;
	color: var(--white);
}
.eccredhh-hero-card h3 {
	color: var(--accent-color);
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* --- ABOUT SECTION --- */
.eccredhh-about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}
.eccredhh-about-img img,
.wp-block-image.eccredhh-about-img img {
	border-radius: var(--border-radius);
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
	width: 100%;
	height: auto;
}
.eccredhh-about-text h3 {
	font-size: 1.8rem;
	margin-bottom: 20px;
	color: var(--primary-color);
}
.eccredhh-about-text p {
	margin-bottom: 20px;
	color: var(--text-light);
}
.eccredhh-check-list { list-style: none; padding: 0; }
.eccredhh-check-list li {
	position: relative;
	padding-left: 25px;
	margin-bottom: 10px;
	color: var(--text-dark);
}
.eccredhh-check-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--accent-color);
	font-weight: bold;
}

/* --- HISTORY SECTION --- */
.eccredhh-history {
	background-color: var(--bg-light);
}
.eccredhh-history-content {
	max-width: 900px;
	margin: 0 auto;
	border-left: 4px solid var(--accent-color);
	padding-left: 30px;
}
.eccredhh-founders {
	background: var(--white);
	padding: 20px;
	margin-top: 30px;
	border-radius: var(--border-radius);
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	border-top: 4px solid var(--accent-color);
}

/* --- MISSION SECTION --- */
.eccredhh-mission {
	background-color: var(--primary-color);
}
.eccredhh-mission .eccredhh-section-title,
.eccredhh-mission p { color: var(--white); }

.eccredhh-grid-3 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 50px;
}
.eccredhh-card {
	background: var(--white);
	color: var(--text-dark);
	padding: 30px;
	border-radius: var(--border-radius);
	transition: var(--transition);
	border-top: 4px solid var(--accent-color);
	height: 100%;
}
.eccredhh-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.eccredhh-card h4 {
	color: var(--primary-color);
	margin-bottom: 15px;
	font-size: 1.25rem;
}
.eccredhh-card p,
.eccredhh-card li {
	color: var(--text-dark);
}

/* --- PHILOSOPHY / VALUES --- */
.eccredhh-values-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
	margin-top: 40px;
}
.eccredhh-value-item {
	text-align: center;
	padding: 30px 20px;
	background: var(--white);
	border-radius: var(--border-radius);
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	transition: var(--transition);
}
.eccredhh-value-item:hover {
	border-bottom: 4px solid var(--accent-color);
}
.eccredhh-value-icon {
	width: 50px;
	height: 50px;
	margin: 0 auto 15px;
	fill: var(--accent-color);
}
.eccredhh-value-item h4 {
	color: var(--primary-color);
	margin-bottom: 10px;
}

/* --- SHOWCASE / WORK CARDS --- */
.eccredhh-work-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 40px;
}
.eccredhh-work-card {
	background: var(--white);
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0,0,0,0.08);
	transition: var(--transition);
	border: 1px solid #eee;
}
.eccredhh-work-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.eccredhh-work-img,
.wp-block-image.eccredhh-work-img,
figure.eccredhh-work-img {
	width: 100%;
	height: 220px;
	overflow: hidden;
	margin: 0;
	padding: 0;
}
.eccredhh-work-img img,
.wp-block-image.eccredhh-work-img img,
figure.eccredhh-work-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.eccredhh-work-card:hover .eccredhh-work-img img {
	transform: scale(1.05);
}
.eccredhh-work-content {
	padding: 25px;
	border-top: 3px solid var(--accent-color);
}
.eccredhh-work-content h3 {
	font-size: 1.3rem;
	margin-bottom: 10px;
	color: var(--primary-color);
}
.eccredhh-work-content p {
	font-size: 0.95rem;
	color: var(--text-light);
}

/* --- ACHIEVEMENTS --- */
.eccredhh-achievements { background-color: var(--bg-light); }
.eccredhh-split {
	display: flex;
	flex-wrap: wrap;
	gap: 50px;
	margin-top: 40px;
}
.eccredhh-split-col { flex: 1; min-width: 280px; }
.eccredhh-star-list { list-style: none; padding: 0; }
.eccredhh-star-list li {
	margin-bottom: 15px;
	padding-left: 30px;
	position: relative;
}
.eccredhh-star-list li::before {
	content: '★';
	position: absolute;
	left: 0;
	color: var(--accent-color);
}
.eccredhh-diff-box {
	background: var(--white);
	padding: 30px;
	border-radius: var(--border-radius);
}

/* --- CONTACT SECTION --- */
.eccredhh-contact {
	background-color: var(--primary-light);
	color: var(--white);
}
.eccredhh-contact .eccredhh-section-title { color: var(--white); }
.eccredhh-contact-layout {
	margin-top: 50px;
}
.eccredhh-contact-info { display: flex; flex-direction: column; gap: 20px; align-items: stretch; width: 100%; }
.eccredhh-contact-card { width: 100%; }
.eccredhh-contact-card {
	background: rgba(255,255,255,0.1);
	padding: 20px;
	border-radius: var(--border-radius);
	border-left: 4px solid var(--accent-color);
}
.eccredhh-contact-card h4 {
	color: var(--accent-color);
	margin-bottom: 5px;
	font-size: 1.1rem;
}
.eccredhh-contact-card a { color: var(--white); text-decoration: underline; }

/* Contact Form */
.eccredhh-form-wrapper {
	background: var(--white);
	padding: 40px;
	border-radius: var(--border-radius);
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
	color: var(--text-dark);
	border-top: 5px solid var(--accent-color);
}
/* Contact Form 7 field styling */
.eccredhh-form-wrapper .wpcf7-form .form-group,
.eccredhh-form-wrapper p { margin-bottom: 20px; }
.eccredhh-form-wrapper label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--primary-color);
}
.eccredhh-form-wrapper input[type="text"],
.eccredhh-form-wrapper input[type="email"],
.eccredhh-form-wrapper textarea,
.eccredhh-form-wrapper input,
.eccredhh-form-wrapper textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-family: inherit;
	font-size: 1rem;
	transition: var(--transition);
}
.eccredhh-form-wrapper input:focus,
.eccredhh-form-wrapper textarea:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(198,40,40,0.2);
}
.eccredhh-form-wrapper .wpcf7-submit { margin-top: 10px; }
.eccredhh-form-wrapper .wpcf7-response-output {
	margin-top: 15px;
	padding: 12px 15px;
	border-radius: 6px;
	border: none !important;
	font-weight: 500;
}
.eccredhh-form-wrapper .wpcf7-mail-sent-ok {
	background: rgba(46,204,113,0.12);
	color: #1a7a42;
	border-left: 4px solid #2ecc71 !important;
}
.eccredhh-form-wrapper .wpcf7-validation-errors,
.eccredhh-form-wrapper .wpcf7-mail-sent-ng,
.eccredhh-form-wrapper .wpcf7-acceptance-missing {
	background: rgba(198,40,40,0.08);
	color: #8b1a1a;
	border-left: 4px solid var(--accent-color) !important;
}
.eccredhh-form-wrapper .wpcf7-not-valid-tip {
	color: var(--accent-color);
	font-size: 0.8rem;
	margin-top: 4px;
	display: block;
}
.eccredhh-form-wrapper .wpcf7-form-control.wpcf7-not-valid {
	border-color: var(--accent-color) !important;
	box-shadow: 0 0 0 3px rgba(198,40,40,0.15);
}
/* Consent checkbox */
.form-group-consent {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.eccredhh-form-wrapper .wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.55;
  cursor: pointer;
}
.eccredhh-form-wrapper .wpcf7-acceptance input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent-color);
  cursor: pointer;
}
.eccredhh-form-wrapper .wpcf7-acceptance a {
  color: #e8b4b4;
  text-decoration: underline;
}

/* Plugin not installed notice */
.eccredhh-plugin-notice {
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: var(--border-radius);
	padding: 30px;
	text-align: center;
	color: var(--white);
}

/* Social Icons (native wp:social-links — contact section) */
.eccredhh-social-links { margin-top: 15px; }
.eccredhh-social-links .wp-block-social-link a {
	background-color: rgba(255,255,255,0.1) !important;
	border: 1px solid rgba(255,255,255,0.3);
	transition: var(--transition);
}
.eccredhh-social-links .wp-block-social-link a:hover {
	background-color: var(--accent-color) !important;
	border-color: var(--accent-color);
	transform: translateY(-3px);
}

/* Form feedback */
#form-message {
	margin-top: 15px;
	padding: 15px;
	border-radius: 6px;
	display: none;
	font-weight: 500;
}
#form-message.success {
	background-color: #d4edda;
	color: #155724;
	display: block;
	border: 1px solid #c3e6cb;
}

/* --- FOOTER --- */
.eccredhh-footer { background-color: #081b2e; }
.eccredhh-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Footer top: 3-column grid */
.eccredhh-footer-top {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 48px;
	padding: 64px 0 48px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Brand column */
.eccredhh-footer-sitename {
	font-size: 1.4rem;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: 0.02em;
	margin-bottom: 12px;
}
.eccredhh-footer-tagline {
	font-size: 0.75rem;
	color: rgba(255,255,255,0.5);
	font-style: italic;
	line-height: 1.5;
	margin: 0 0 12px;
}
.eccredhh-footer-desc {
	font-size: 0.88rem;
	color: rgba(255,255,255,0.55);
	line-height: 1.65;
	margin: 0 0 24px;
}

/* Social icon row */
.eccredhh-footer-social {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.eccredhh-soc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.7);
	border: 1px solid rgba(255,255,255,0.15);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.eccredhh-soc-btn:hover {
	background: var(--accent-color);
	color: #fff;
	border-color: var(--accent-color);
	transform: translateY(-3px);
}
.eccredhh-soc-btn:focus-visible {
	outline: 2px solid var(--accent-color);
	outline-offset: 3px;
}

/* Nav & legal column headings */
.eccredhh-footer-col-title {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255,255,255,0.4);
	margin: 0 0 18px;
}

/* Footer link lists */
.eccredhh-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}
.eccredhh-footer-links li { margin-bottom: 10px; }
.eccredhh-footer-links a {
	color: rgba(255,255,255,0.65);
	text-decoration: none;
	font-size: 0.88rem;
	transition: color 0.2s ease;
}
.eccredhh-footer-links a:hover { color: #ffffff; }
.eccredhh-footer-links a:focus-visible {
	outline: 2px solid rgba(255,255,255,0.5);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Bottom bar */
.eccredhh-footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0 28px;
	gap: 16px;
	flex-wrap: wrap;
}
.eccredhh-footer-copy {
	font-size: 0.82rem;
	color: rgba(255,255,255,0.35);
	margin: 0;
}
.eccredhh-footer-credit {
	font-size: 0.78rem;
	color: rgba(255,255,255,0.25);
	margin: 0;
}
.eccredhh-footer-credit a {
	color: rgba(255,255,255,0.45);
	text-decoration: none;
	transition: color 0.2s ease;
}
.eccredhh-footer-credit a:hover { color: rgba(255,255,255,0.75); }

/* Footer responsive breakpoints */
@media (max-width: 900px) {
	.eccredhh-footer-top { grid-template-columns: 1fr 1fr; gap: 36px; padding: 48px 0 40px; }
	.eccredhh-footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.eccredhh-footer-top { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 32px; }
	.eccredhh-footer-col--brand { grid-column: auto; }
	.eccredhh-footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* --- SCROLL ANIMATIONS --- */
.eccredhh-card,
.eccredhh-value-item,
.eccredhh-work-card,
.eccredhh-stat-item,
.eccredhh-history-content,
.eccredhh-about-grid,
.eccredhh-founders,
.eccredhh-diff-box,
.eccredhh-animate {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.eccredhh-card.eccredhh-visible,
.eccredhh-value-item.eccredhh-visible,
.eccredhh-work-card.eccredhh-visible,
.eccredhh-stat-item.eccredhh-visible,
.eccredhh-history-content.eccredhh-visible,
.eccredhh-about-grid.eccredhh-visible,
.eccredhh-founders.eccredhh-visible,
.eccredhh-diff-box.eccredhh-visible,
.eccredhh-animate.eccredhh-visible {
	opacity: 1;
	transform: translateY(0);
}
/* Stagger delays for grid children */
.eccredhh-card:nth-child(2),
.eccredhh-value-item:nth-child(2),
.eccredhh-work-card:nth-child(2),
.eccredhh-stat-item:nth-child(2) { transition-delay: 0.1s; }
.eccredhh-card:nth-child(3),
.eccredhh-value-item:nth-child(3),
.eccredhh-work-card:nth-child(3),
.eccredhh-stat-item:nth-child(3) { transition-delay: 0.2s; }
.eccredhh-value-item:nth-child(4),
.eccredhh-work-card:nth-child(4),
.eccredhh-stat-item:nth-child(4) { transition-delay: 0.3s; }
.eccredhh-value-item:nth-child(5),
.eccredhh-work-card:nth-child(5) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
	.eccredhh-card, .eccredhh-value-item, .eccredhh-work-card,
	.eccredhh-stat-item, .eccredhh-history-content, .eccredhh-about-grid,
	.eccredhh-founders, .eccredhh-diff-box, .eccredhh-animate {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* --- STATS STRIP --- */
.eccredhh-stats-strip { background-color: var(--accent-color) !important; }
/* Legacy html-block stats */
.eccredhh-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
	text-align: center;
}
.eccredhh-stat-item { padding: 20px 10px; text-align: center; }
.eccredhh-stat-number {
	display: block;
	font-size: 3rem;
	font-weight: 800;
	color: var(--white);
	line-height: 1;
	margin-bottom: 8px;
}
.eccredhh-stat-label {
	display: block;
	font-size: 0.9rem;
	color: rgba(255,255,255,0.85);
	text-transform: uppercase;
	letter-spacing: 1px;
}
/* Editable stats — native wp:column blocks */
.eccredhh-stat-item.wp-block-column { padding: 20px 10px; }
.eccredhh-stat-item .wp-block-heading,
.eccredhh-stat-number-block {
	font-size: 3rem !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	color: var(--white) !important;
	margin-top: 0 !important;
	margin-bottom: 8px !important;
}
.eccredhh-stat-item p {
	font-size: 0.9rem !important;
	color: rgba(255,255,255,0.85) !important;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0 !important;
}
/* 2-column layout on small screens */
@media (max-width: 600px) {
	.eccredhh-stats-strip .wp-block-columns.is-not-stacked-on-mobile {
		flex-wrap: wrap;
	}
	.eccredhh-stats-strip .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
		flex-basis: calc(50% - 10px) !important;
		min-width: calc(50% - 10px) !important;
	}
}

/* --- BACK TO TOP --- */
.eccredhh-back-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 48px;
	height: 48px;
	background: var(--primary-color);
	color: var(--white);
	border: 2px solid rgba(255,255,255,0.15);
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
	z-index: 9999;
	pointer-events: none;
}
.eccredhh-back-top::after {
	content: '';
	display: block;
	width: 11px;
	height: 11px;
	border-left: 2.5px solid var(--white);
	border-top: 2.5px solid var(--white);
	transform: rotate(45deg) translate(2px, 2px);
}
.eccredhh-back-top.eccredhh-back-top-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.eccredhh-back-top:hover {
	background: var(--accent-color);
	border-color: var(--accent-color);
	transform: translateY(-4px);
}

/* --- WHATSAPP INLINE CONTACT LINK --- */
.eccredhh-wa-link {
	color: #25d366 !important;
	font-weight: 600;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color 0.2s ease;
}
.eccredhh-wa-link:hover {
	color: #1ebe5a !important;
	text-decoration: underline !important;
}
.eccredhh-wa-link svg {
	flex-shrink: 0;
}

/* --- BLOG / ACTUALITÉS SECTION --- */
.eccredhh-blog { background: var(--bg-light); }
.eccredhh-blog-grid { margin-top: 40px; }
.eccredhh-blog-grid .wp-block-post-template {
	gap: 30px !important;
	grid-template-columns: repeat(3, 1fr) !important;
}
.eccredhh-blog-card {
	background: var(--white);
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0,0,0,0.08);
	transition: var(--transition);
	display: flex;
	flex-direction: column;
	height: 100%;
}
.eccredhh-blog-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.eccredhh-blog-img img,
.eccredhh-blog-card .wp-block-post-featured-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}
.eccredhh-blog-card .wp-block-post-featured-image {
	margin: 0;
}
.eccredhh-blog-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px;
	border-top: 3px solid var(--accent-color);
}
.eccredhh-blog-date {
	font-size: 0.8rem !important;
	color: var(--accent-color) !important;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px !important;
	display: block;
}
.eccredhh-blog-title {
	font-size: 1.05rem !important;
	margin-top: 6px !important;
	margin-bottom: 10px !important;
	line-height: 1.4;
}
.eccredhh-blog-title a {
	color: var(--primary-color);
	text-decoration: none;
}
.eccredhh-blog-title a:hover { color: var(--accent-color); }
.eccredhh-blog-card .wp-block-post-excerpt {
	font-size: 0.9rem;
	color: var(--text-light);
	margin: 0 0 12px;
	flex: 1;
}
.eccredhh-blog-card .wp-block-post-excerpt__more-link {
	color: var(--accent-color);
	font-weight: 600;
	text-decoration: none;
}
.eccredhh-blog-card .wp-block-post-excerpt__more-link:hover { text-decoration: underline; }
.eccredhh-blog-pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.eccredhh-blog-pagination a,
.eccredhh-blog-pagination .page-numbers {
	color: var(--primary-color);
	text-decoration: none;
	padding: 8px 14px;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: var(--transition);
}
.eccredhh-blog-pagination a:hover,
.eccredhh-blog-pagination .current { background: var(--accent-color); color: var(--white); border-color: var(--accent-color); }

/* --- ACTIVE NAV --- */
.wp-block-navigation a.eccredhh-nav-active { color: var(--accent-color) !important; }

/* --- HERO SCROLL INDICATOR --- */
.eccredhh-scroll-indicator {
	margin-top: 30px;
	animation: eccredhh-bounce 2s ease-in-out infinite;
}
.eccredhh-scroll-indicator a {
	display: inline-block;
	opacity: 0.7;
	transition: opacity 0.3s ease;
}
.eccredhh-scroll-indicator a:hover { opacity: 1; }
@keyframes eccredhh-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(8px); }
}

/* --- SECTION PADDING UTILITY --- */
.eccredhh-section { padding: 80px 0; }

/* ============================================================
   SINGLE POST STYLES
   ============================================================ */

/* Post cover hero */
.eccredhh-post-cover {
	position: relative;
}
/* Bottom gradient overlay for better text contrast */
.eccredhh-post-cover::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60%;
	background: linear-gradient(to top, rgba(15,44,76,0.55) 0%, transparent 100%);
	pointer-events: none;
	z-index: 1;
}
.eccredhh-post-cover .wp-block-cover__inner-container {
	padding: 80px 20px 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
	position: relative;
	z-index: 2;
}

/* Category badges on post hero */
.eccredhh-post-cats .wp-block-post-terms__content {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.eccredhh-post-cats a {
	background: var(--accent-color);
	color: var(--white) !important;
	text-decoration: none !important;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	padding: 4px 12px;
	border-radius: 20px;
	transition: background 0.2s ease;
}
.eccredhh-post-cats a:hover { background: var(--accent-hover); }

/* Post h1 title */
.eccredhh-post-h1 {
	color: var(--white) !important;
	max-width: 820px;
	margin: 0 auto !important;
	text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

/* Byline (author + date bar) */
.eccredhh-post-byline {
	margin-top: 8px !important;
}
.eccredhh-post-byline .wp-block-post-author__byline { display: none; }
.eccredhh-post-byline .wp-block-post-author__name { font-weight: 600; }
.eccredhh-byline-sep {
	width: 1px !important;
	height: 16px;
	margin: 0 !important;
	flex-shrink: 0;
}
.eccredhh-post-date-meta { font-size: 0.9rem; }

/* Back button */
.eccredhh-post-back { margin-bottom: 36px; }
.eccredhh-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent-color);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: gap 0.2s ease, color 0.2s ease;
}
.eccredhh-back-btn:hover { gap: 12px; color: var(--accent-hover); }

/* ---- PROSE TYPOGRAPHY: styles for content inside a post ---- */
.eccredhh-post-article .wp-block-post-content {
	font-size: 1.1rem;
	line-height: 1.85;
	color: #374151;
}
/* Lead / first paragraph */
.eccredhh-post-article .wp-block-post-content > p:first-of-type {
	font-size: 1.2rem;
	line-height: 1.75;
	color: #1f2937;
	font-weight: 400;
}
.eccredhh-post-article .wp-block-post-content > * + * {
	margin-top: 1.6em;
}
.eccredhh-post-article .wp-block-post-content h2 {
	font-size: 1.9rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-top: 2.2em;
	margin-bottom: 0.6em;
	line-height: 1.25;
}
.eccredhh-post-article .wp-block-post-content h3 {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-top: 1.8em;
	margin-bottom: 0.5em;
}
.eccredhh-post-article .wp-block-post-content h4 {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-top: 1.5em;
}
/* Links */
.eccredhh-post-article .wp-block-post-content a {
	color: var(--accent-color);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.eccredhh-post-article .wp-block-post-content a:hover { color: var(--accent-hover); }

/* Images */
.eccredhh-post-article .wp-block-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--border-radius);
	display: block;
}
.eccredhh-post-article .wp-block-post-content figure.wp-block-image {
	margin: 2em 0;
}
.eccredhh-post-article .wp-block-post-content figcaption {
	text-align: center;
	font-size: 0.85rem;
	color: #9ca3af;
	margin-top: 8px;
	font-style: italic;
}

/* Gallery */
.eccredhh-post-article .wp-block-post-content .wp-block-gallery {
	margin: 2em 0;
}
.eccredhh-post-article .wp-block-post-content .wp-block-gallery img {
	border-radius: 6px;
}

/* Videos - responsive 16:9 wrapper */
.eccredhh-post-article .wp-block-post-content .wp-block-video,
.eccredhh-post-article .wp-block-post-content figure.wp-block-video {
	margin: 2em 0;
}
.eccredhh-post-article .wp-block-post-content .wp-block-video video {
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: var(--border-radius);
	display: block;
}

/* Embeds (YouTube, Vimeo, Twitter, etc.) */
.eccredhh-post-article .wp-block-post-content .wp-block-embed {
	margin: 2em 0;
}
.eccredhh-post-article .wp-block-post-content .wp-block-embed__wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	border-radius: var(--border-radius);
}
.eccredhh-post-article .wp-block-post-content .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* Blockquote */
.eccredhh-post-article .wp-block-post-content blockquote,
.eccredhh-post-article .wp-block-post-content .wp-block-quote {
	border-left: 4px solid var(--accent-color);
	margin: 2em 0;
	padding: 20px 30px;
	background: #fef9f9;
	border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.eccredhh-post-article .wp-block-post-content .wp-block-quote p {
	font-size: 1.2rem;
	font-style: italic;
	color: #374151;
	margin: 0;
}
.eccredhh-post-article .wp-block-post-content .wp-block-quote cite {
	display: block;
	margin-top: 12px;
	font-size: 0.875rem;
	font-style: normal;
	color: #9ca3af;
	font-weight: 600;
}
/* Pull quote */
.eccredhh-post-article .wp-block-post-content .wp-block-pullquote {
	border-top: 4px solid var(--accent-color);
	border-bottom: 4px solid var(--accent-color);
	padding: 30px 0;
	margin: 2.5em 0;
	text-align: center;
}
.eccredhh-post-article .wp-block-post-content .wp-block-pullquote p {
	font-size: 1.5rem;
	font-style: italic;
	color: var(--primary-color);
	line-height: 1.5;
}

/* Code blocks */
.eccredhh-post-article .wp-block-post-content code {
	font-family: 'Courier New', monospace;
	font-size: 0.9em;
	background: #f1f5f9;
	padding: 2px 6px;
	border-radius: 4px;
	color: #c62828;
}
.eccredhh-post-article .wp-block-post-content pre {
	background: #1e293b;
	color: #e2e8f0;
	padding: 24px;
	border-radius: var(--border-radius);
	overflow-x: auto;
	font-size: 0.9rem;
	line-height: 1.7;
	margin: 2em 0;
}
.eccredhh-post-article .wp-block-post-content pre code {
	background: none;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

/* Lists */
.eccredhh-post-article .wp-block-post-content ul,
.eccredhh-post-article .wp-block-post-content ol {
	padding-left: 1.8em;
}
.eccredhh-post-article .wp-block-post-content li { margin-bottom: 0.4em; }
.eccredhh-post-article .wp-block-post-content ul > li::marker { color: var(--accent-color); }

/* Tables */
.eccredhh-post-article .wp-block-post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 2em 0;
	font-size: 0.95rem;
}
.eccredhh-post-article .wp-block-post-content th {
	background: var(--primary-color);
	color: var(--white);
	padding: 12px 16px;
	text-align: left;
	font-weight: 600;
}
.eccredhh-post-article .wp-block-post-content td {
	padding: 10px 16px;
	border-bottom: 1px solid #e5e7eb;
}
.eccredhh-post-article .wp-block-post-content tr:nth-child(even) td { background: #f8fafc; }
.eccredhh-post-article .wp-block-post-content tr:hover td { background: #f0f4f8; }

/* Separator */
.eccredhh-post-sep { margin: 40px auto !important; max-width: 100px !important; }

/* Post tags */
.eccredhh-post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 0.9rem;
	color: var(--text-light);
	margin-top: 8px;
}
.eccredhh-post-tags a {
	display: inline-block;
	background: #f1f5f9;
	color: var(--primary-color) !important;
	text-decoration: none !important;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
	transition: background 0.2s ease;
}
.eccredhh-post-tags a:hover { background: #e2e8f0; }

/* Post navigation (previous / next) */
.eccredhh-post-nav {
	border-top: 1px solid #e5e7eb;
	padding-top: 32px;
}
.eccredhh-post-nav-prev,
.eccredhh-post-nav-next {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 46%;
}
.eccredhh-post-nav-next { text-align: right; margin-left: auto; }
/* Label (← Précédent / Suivant →) — rendered as <span> by WordPress */
.eccredhh-post-nav-prev .post-navigation-link__label,
.eccredhh-post-nav-next .post-navigation-link__label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-light);
	font-weight: 700;
}
/* The <a> element IS the post title */
.eccredhh-post-nav-prev a,
.eccredhh-post-nav-next a {
	color: var(--primary-color);
	font-weight: 700;
	text-decoration: none;
	font-size: 0.95rem;
	transition: color 0.2s ease;
	line-height: 1.35;
}
.eccredhh-post-nav-prev a:hover,
.eccredhh-post-nav-next a:hover { color: var(--accent-color); }

/* ============================================================
   ARCHIVE / ACTUALITÉS PAGE
   ============================================================ */

/* Hero */
.eccredhh-archive-hero { text-align: center; }
.eccredhh-archive-title { margin-bottom: 10px !important; color: var(--white) !important; }
.eccredhh-archive-dyn-title {
	margin-top: 4px !important;
	margin-bottom: 8px !important;
	color: rgba(255,255,255,0.75) !important;
}
.eccredhh-archive-dyn-title:empty { display: none; }
.eccredhh-archive-subtitle { margin-top: 10px !important; }

/* Search form in hero */
.eccredhh-search-form .wp-block-search__inside-wrapper {
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid rgba(255,255,255,0.35) !important;
	background: rgba(255,255,255,0.1);
	max-width: 480px;
	margin: 0 auto;
}
.eccredhh-search-form .wp-block-search__input {
	background: transparent !important;
	color: #fff !important;
	padding: 10px 14px !important;
	border: none !important;
}
.eccredhh-search-form .wp-block-search__input::placeholder { color: rgba(255,255,255,0.55); }
.eccredhh-search-form .wp-block-search__button {
	background: var(--accent) !important;
	color: #fff !important;
	border: none !important;
	padding: 0 16px !important;
	cursor: pointer;
}

/* Breadcrumb */
.eccredhh-breadcrumb {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 0.82rem;
	color: rgba(255,255,255,0.5);
	margin-bottom: 24px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.eccredhh-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s ease; }
.eccredhh-breadcrumb a:hover { color: var(--white); }
.eccredhh-breadcrumb span:last-child { color: rgba(255,255,255,0.9); }

/* ── FEATURED FIRST POST ── */
.eccredhh-archive-query .wp-block-post-template {
	gap: 28px !important;
	grid-template-columns: repeat(3, 1fr) !important;
}
.eccredhh-archive-query .wp-block-post-template > li:first-child {
	grid-column: 1 / -1;
	position: relative;
}
.eccredhh-archive-query .wp-block-post-template > li:first-child::before {
	content: "À la une";
	position: absolute;
	top: -12px;
	left: 0;
	background: var(--accent-color);
	color: var(--white);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	padding: 4px 14px;
	border-radius: 3px 3px 0 0;
	z-index: 1;
}
.eccredhh-archive-query .wp-block-post-template > li:first-child .eccredhh-blog-card {
	flex-direction: row;
	min-height: 340px;
	border-radius: 10px;
}
.eccredhh-archive-query .wp-block-post-template > li:first-child .wp-block-post-featured-image {
	width: 52%;
	flex-shrink: 0;
	overflow: hidden;
}
.eccredhh-archive-query .wp-block-post-template > li:first-child .wp-block-post-featured-image img {
	height: 100% !important;
	min-height: 340px;
	width: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.eccredhh-archive-query .wp-block-post-template > li:first-child .eccredhh-blog-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}
.eccredhh-archive-query .wp-block-post-template > li:first-child .eccredhh-blog-content {
	flex: 1;
	padding: 40px !important;
	justify-content: center;
	border-top: none !important;
	border-left: 4px solid var(--accent-color);
}
.eccredhh-archive-query .wp-block-post-template > li:first-child .eccredhh-blog-title {
	font-size: 1.6rem !important;
	line-height: 1.3 !important;
	margin-bottom: 14px !important;
}
.eccredhh-archive-query .wp-block-post-template > li:first-child .wp-block-post-excerpt { font-size: 1rem; line-height: 1.7; }

/* ── CARD IMAGE HOVER ZOOM ── */
.eccredhh-blog-card .wp-block-post-featured-image { overflow: hidden; }
.eccredhh-blog-card .wp-block-post-featured-image img { transition: transform 0.4s ease; }
.eccredhh-blog-card:hover .wp-block-post-featured-image img { transform: scale(1.06); }

/* Enhanced card meta */
.eccredhh-card-cat a {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--accent-color) !important;
	text-decoration: none !important;
}
.eccredhh-card-footer {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #f0f0f0;
	font-size: 0.8rem;
	color: var(--text-light);
}
.eccredhh-card-date, .eccredhh-card-author { color: var(--text-light) !important; font-size: 0.8rem !important; }

/* ── NO POSTS STATE ── */
.eccredhh-no-posts {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 80px 20px;
	text-align: center;
	color: var(--text-light);
}
.eccredhh-no-posts p { font-size: 1.1rem; font-style: italic; }

/* ── ARCHIVE PAGINATION ── */
.eccredhh-archive-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.eccredhh-archive-pagination a,
.eccredhh-archive-pagination .page-numbers,
.eccredhh-archive-pagination .wp-block-query-pagination-previous a,
.eccredhh-archive-pagination .wp-block-query-pagination-next a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	color: var(--primary-color);
	text-decoration: none;
	border: 2px solid #d1d9e6;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	transition: all 0.2s ease;
	background: var(--white);
}
.eccredhh-archive-pagination a:hover,
.eccredhh-archive-pagination .wp-block-query-pagination-previous a:hover,
.eccredhh-archive-pagination .wp-block-query-pagination-next a:hover {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: var(--white);
}
.eccredhh-archive-pagination .current { background: var(--accent-color); border-color: var(--accent-color); color: var(--white); }

/* ── BUTTONS ── */
.eccredhh-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--accent-color);
	color: var(--white) !important;
	text-decoration: none !important;
	padding: 14px 28px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.95rem;
	transition: all 0.25s ease;
	border: 2px solid var(--accent-color);
}
.eccredhh-btn-primary:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(198,40,40,0.35);
}
.eccredhh-btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: var(--accent-color) !important;
	text-decoration: none !important;
	padding: 12px 24px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.9rem;
	border: 2px solid var(--accent-color);
	transition: all 0.25s ease;
}
.eccredhh-btn-outline:hover { background: var(--accent-color); color: var(--white) !important; }

/* Homepage blog "Voir toutes" CTA */
.eccredhh-blog-cta { text-align: center; margin-top: 44px; }

/* ── RESPONSIVE ARCHIVE ── */
@media (max-width: 900px) {
	.eccredhh-archive-query .wp-block-post-template > li:first-child .eccredhh-blog-card { flex-direction: column; min-height: auto; }
	.eccredhh-archive-query .wp-block-post-template > li:first-child .wp-block-post-featured-image { width: 100%; }
	.eccredhh-archive-query .wp-block-post-template > li:first-child .wp-block-post-featured-image img { min-height: 260px; }
	.eccredhh-archive-query .wp-block-post-template > li:first-child .eccredhh-blog-content { border-left: none !important; border-top: 4px solid var(--accent-color) !important; padding: 24px !important; }
	.eccredhh-archive-query .wp-block-post-template > li:first-child .eccredhh-blog-title { font-size: 1.3rem !important; }
	.eccredhh-archive-query .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
	.eccredhh-archive-query .wp-block-post-template { grid-template-columns: 1fr !important; }
	.eccredhh-archive-title { font-size: 2.2rem !important; }
}

/* Responsive single post */
@media (max-width: 768px) {
	.eccredhh-post-cover .wp-block-cover__inner-container { padding: 60px 16px 40px; }
	.eccredhh-post-h1 { font-size: 1.8rem !important; }
	.eccredhh-post-article .wp-block-post-content { font-size: 1rem; }
	.eccredhh-post-article .wp-block-post-content h2 { font-size: 1.5rem; }
	.eccredhh-post-article .wp-block-post-content h3 { font-size: 1.2rem; }
	.eccredhh-post-article .wp-block-post-content .wp-block-quote p { font-size: 1.05rem; }
	.eccredhh-post-article .wp-block-post-content .wp-block-pullquote p { font-size: 1.2rem; }
	.eccredhh-post-article { padding: 30px 16px 50px !important; }
	.eccredhh-archive-title { font-size: 2rem !important; }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
	.eccredhh-section { padding: 70px 0; }
}
@media (max-width: 900px) {
	.eccredhh-section { padding: 60px 0; }
	.eccredhh-split { flex-direction: column; gap: 30px; }
}
@media (max-width: 768px) {
	.eccredhh-hero h1 { font-size: 2rem; }
	.eccredhh-hero p { font-size: 1rem; }
	.eccredhh-hero .wp-block-cover__inner-container { padding: 80px 16px 60px; }
	.eccredhh-about-grid { grid-template-columns: 1fr; }
	.eccredhh-about-img { order: -1; }
	.eccredhh-section { padding: 50px 0; }
	.eccredhh-section-title { font-size: 1.8rem; }
	.eccredhh-grid-3 { grid-template-columns: 1fr; }
	.eccredhh-values-grid { grid-template-columns: repeat(2, 1fr); }
	.eccredhh-form-wrapper { padding: 25px; }
	.eccredhh-card { padding: 20px; }
	.eccredhh-contact-info { gap: 15px; }
	/* Hero cards: stack vertically on tablets and below */
	.eccredhh-hero-cards { flex-direction: column; align-items: center; gap: 15px; }
	.eccredhh-hero-card { max-width: 100%; width: 100%; box-sizing: border-box; }
	/* Nav: tighten spacing on tablets */
	.eccredhh-nav .wp-block-navigation__container { gap: 16px !important; }
	.eccredhh-nav .wp-block-navigation-item__content { font-size: 0.8rem !important; }
	/* Blog: 2 columns on tablet */
	.eccredhh-blog-grid .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
	.eccredhh-hero h1 { font-size: 1.5rem; }
	.eccredhh-section { padding: 40px 0; }
	.eccredhh-section-title { font-size: 1.4rem; }
	.eccredhh-section-title::after { margin: 8px 0 0; }
	.eccredhh-work-grid { grid-template-columns: 1fr; }
	.eccredhh-values-grid { grid-template-columns: 1fr; }
	.eccredhh-form-wrapper { padding: 18px; }
	/* Nav: tighten further on small phones */
	.eccredhh-nav .wp-block-navigation__container { gap: 10px !important; }
	.eccredhh-nav .wp-block-navigation-item__content { font-size: 0.7rem !important; letter-spacing: 0 !important; }
	/* Stats strip: ensure 2-column layout holds */
	.eccredhh-stat-item .eccredhh-stat-number-block { font-size: 2.2rem !important; }
	/* Blog: single column on small phones */
	.eccredhh-blog-grid .wp-block-post-template { grid-template-columns: 1fr !important; }
}

/* ============================================================
   CATEGORY TABS (archive page)
   ============================================================ */
.eccredhh-tabs-wrapper {
	background: var(--white);
	border-bottom: 1px solid #e5e7eb;
	position: sticky;
	top: 0;
	z-index: 40;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.eccredhh-category-tabs {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}
.eccredhh-tabs-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.eccredhh-tabs-list::-webkit-scrollbar { display: none; }
.eccredhh-tab-item { flex-shrink: 0; }
.eccredhh-tab-link {
	display: block;
	padding: 15px 20px;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--text-light);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
	letter-spacing: 0.2px;
}
.eccredhh-tab-link:hover { color: var(--primary-color); border-bottom-color: #d1d9e6; }
.eccredhh-tab-link.active {
	color: var(--accent-color);
	border-bottom-color: var(--accent-color);
	font-weight: 700;
}
@media (max-width: 600px) {
	.eccredhh-tab-link { padding: 13px 14px; font-size: 0.82rem; }
}

/* ============================================================
   POST LIKES
   ============================================================ */
.eccredhh-like-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border: 2px solid #e0e0e0;
	border-radius: 50px;
	background: var(--white);
	color: #aaa;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease;
	font-family: inherit;
}
.eccredhh-like-btn:hover:not(:disabled) {
	border-color: #e74c3c;
	color: #e74c3c;
	transform: translateY(-1px);
}
.eccredhh-like-btn.eccredhh-liked {
	border-color: #e74c3c;
	color: #e74c3c;
	background: #fff5f5;
	cursor: default;
}
.eccredhh-like-btn:disabled { opacity: 0.7; cursor: wait; }
.eccredhh-like-btn svg { transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275); }
.eccredhh-like-btn:hover:not(:disabled) svg,
.eccredhh-like-btn.eccredhh-liked svg { transform: scale(1.25); }
@keyframes eccredhh-like-pop {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.35); }
	70%  { transform: scale(0.92); }
	100% { transform: scale(1); }
}
.eccredhh-like-btn.eccredhh-like-bounce svg { animation: eccredhh-like-pop 0.6s ease forwards; }
.eccredhh-like-label { font-size: 0.88rem; }

/* ============================================================
   COMMENTS SECTION
   ============================================================ */
.eccredhh-comments-section {
	margin-top: 48px;
	padding-top: 48px;
	border-top: 2px solid #e5e7eb;
}
.eccredhh-comments-title,
.eccredhh-comments-section .wp-block-comments-title {
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 32px !important;
}
/* Comment items */
.eccredhh-comment-item {
	padding: 20px 0;
	border-bottom: 1px solid #f0f0f0;
	gap: 16px !important;
}
.eccredhh-comment-item .wp-block-avatar img {
	border-radius: 50%;
	flex-shrink: 0;
}
.eccredhh-comment-item .wp-block-comment-author-name {
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 2px;
}
.eccredhh-comment-item .wp-block-comment-author-name a {
	color: inherit;
	text-decoration: none;
}
.eccredhh-comment-item .wp-block-comment-date {
	font-size: 0.82rem;
	color: var(--text-light);
	margin-bottom: 8px;
}
.eccredhh-comment-item .wp-block-comment-date a {
	color: inherit;
	text-decoration: none;
}
.eccredhh-comment-item .wp-block-comment-content p {
	margin: 0;
	line-height: 1.65;
	color: #374151;
	font-size: 0.97rem;
}
.eccredhh-comment-item .wp-block-comment-reply-link {
	margin-top: 8px;
}
.eccredhh-comment-item .wp-block-comment-reply-link a {
	font-size: 0.82rem;
	color: var(--accent-color);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s;
}
.eccredhh-comment-item .wp-block-comment-reply-link a:hover { color: var(--accent-hover); }

/* Comments form */
.eccredhh-comments-section .wp-block-post-comments-form { margin-top: 40px; }
.eccredhh-comments-section .wp-block-post-comments-form label {
	display: block;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 4px;
	font-size: 0.9rem;
}
.eccredhh-comments-section .wp-block-post-comments-form input[type="text"],
.eccredhh-comments-section .wp-block-post-comments-form input[type="email"],
.eccredhh-comments-section .wp-block-post-comments-form input[type="url"],
.eccredhh-comments-section .wp-block-post-comments-form textarea {
	border: 1.5px solid #d1d5db;
	border-radius: 6px;
	padding: 10px 14px;
	font-family: inherit;
	font-size: 0.95rem;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	color: var(--text-dark);
}
.eccredhh-comments-section .wp-block-post-comments-form input:focus,
.eccredhh-comments-section .wp-block-post-comments-form textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(15,44,76,0.08);
}
.eccredhh-comments-section .wp-block-post-comments-form .form-submit .submit,
.eccredhh-comments-section .wp-block-post-comments-form input[type="submit"] {
	background: var(--primary-color);
	color: var(--white);
	border: none;
	border-radius: 6px;
	padding: 11px 28px;
	font-weight: 700;
	font-family: inherit;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background 0.2s ease;
	margin-top: 4px;
}
.eccredhh-comments-section .wp-block-post-comments-form .form-submit .submit:hover,
.eccredhh-comments-section .wp-block-post-comments-form input[type="submit"]:hover {
	background: var(--accent-color);
}
/* Comments pagination */
.eccredhh-comments-section .wp-block-comments-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 32px 0;
}
.eccredhh-comments-section .wp-block-comments-pagination a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: color 0.2s;
}
.eccredhh-comments-section .wp-block-comments-pagination a:hover { color: var(--accent-color); }

/* Hide any WordPress FSE duplicate loop output that may appear after the footer */
.wp-site-blocks > footer ~ div { display: none !important; }

/* ============================================================
   PARTNERS SECTION
   ============================================================ */
.eccredhh-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 48px 0 40px;
}

.eccredhh-partner-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border: 1px solid #e8edf2;
  transition: var(--transition);
}

.eccredhh-partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15,44,76,0.10);
  border-color: #c9d5e0;
}

.eccredhh-partner-logo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.2;
}

.eccredhh-partner-logo--img {
  background: transparent !important;
  overflow: hidden;
  padding: 2px;
}

.eccredhh-partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.eccredhh-partner-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px;
  line-height: 1.3;
}

.eccredhh-partner-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-color);
  background: rgba(198,40,40,0.08);
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.eccredhh-partner-info p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.eccredhh-partners-cta {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, #0f2c4c 0%, #1a3b60 100%);
  border-radius: 12px;
  margin-top: 8px;
}

.eccredhh-partners-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin: 0 0 16px;
}

.eccredhh-partners-cta .eccredhh-btn-primary {
  display: inline-block;
  background: var(--accent-color);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  transition: var(--transition);
}

.eccredhh-partners-cta .eccredhh-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(198,40,40,0.35);
}

@media (max-width: 960px) {
  .eccredhh-partners-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .eccredhh-partners-grid { grid-template-columns: 1fr; }
  .eccredhh-partner-card { flex-direction: column; align-items: center; text-align: center; }
  .eccredhh-partner-type { margin: 4px auto 8px; }
}

/* ============================================================
   READING TIME (single post)
   ============================================================ */
.eccredhh-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	color: rgba(255,255,255,0.65);
	justify-content: center;
	margin-top: 6px;
}

/* ============================================================
   POST ACTIONS BAR (likes + share)
   ============================================================ */
.eccredhh-post-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin: 32px 0 8px;
	padding: 20px 24px;
	background: #f8fafc;
	border-radius: 10px;
	border: 1px solid #e9edf2;
}

/* ── SOCIAL SHARE ── */
.eccredhh-share-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.eccredhh-share-label {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--text-light);
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-right: 4px;
}
.eccredhh-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	transition: transform 0.2s ease, filter 0.2s ease;
	color: var(--white);
	text-decoration: none;
	flex-shrink: 0;
}
.eccredhh-share-btn:hover { transform: scale(1.12); filter: brightness(1.1); }
.eccredhh-share-fb  { background: #1877f2; }
.eccredhh-share-tw  { background: #111; }
.eccredhh-share-wa  { background: #25d366; }
.eccredhh-share-copy { background: #6b7280; font-family: inherit; }
.eccredhh-share-copied { background: #16a34a !important; }
@media (max-width: 600px) {
	.eccredhh-post-actions { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#eccredhh-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: var(--accent-color);
	z-index: 9999;
	transition: width 0.1s linear;
	border-radius: 0 2px 2px 0;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.eccredhh-related-posts {
	margin: 56px 0 0;
}
.eccredhh-related-title {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--text-dark);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 24px;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--accent-color);
	display: inline-block;
}
.eccredhh-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 4px;
}
.eccredhh-rel-card {
	display: flex;
	flex-direction: column;
	background: var(--bg-light);
	border-radius: var(--border-radius);
	overflow: hidden;
	text-decoration: none;
	border: 1px solid #e5e7eb;
	transition: var(--transition);
}
.eccredhh-rel-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(15,44,76,0.10);
	border-color: #c9d5e0;
}
.eccredhh-rel-img {
	height: 150px;
	background: #d0d9e4 center/cover no-repeat;
	flex-shrink: 0;
}
.eccredhh-rel-noimg {
	background: linear-gradient(135deg, #e8edf2 0%, #c9d5e0 100%);
}
.eccredhh-rel-body {
	padding: 14px 16px 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.eccredhh-rel-body h4 {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--text-dark);
	margin: 0 0 6px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.eccredhh-rel-body p {
	font-size: 0.82rem;
	color: var(--text-light);
	line-height: 1.5;
	margin: 0 0 10px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.eccredhh-rel-date {
	font-size: 0.75rem;
	color: #9ca3af;
	margin-top: auto;
}
@media (max-width: 700px) {
	.eccredhh-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.eccredhh-related-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.eccredhh-404-container {
	text-align: center;
	padding: 20px;
}
.eccredhh-404-number {
	font-size: clamp(5rem, 15vw, 10rem);
	font-weight: 900;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 3px var(--accent-color);
	letter-spacing: -0.04em;
	margin-bottom: 16px;
	user-select: none;
}
.eccredhh-404-title {
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 800;
	color: var(--text-dark);
	margin: 0 0 12px;
}
.eccredhh-404-desc {
	font-size: 1.05rem;
	color: var(--text-light);
	max-width: 480px;
	margin: 0 auto 32px;
	line-height: 1.6;
}
.eccredhh-404-actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 40px;
}
.eccredhh-btn-outline-dark {
	display: inline-block;
	padding: 12px 28px;
	border: 2px solid var(--primary-color);
	border-radius: 50px;
	color: var(--primary-color) !important;
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: var(--transition);
}
.eccredhh-btn-outline-dark:hover {
	background: var(--primary-color);
	color: #fff !important;
}
.eccredhh-404-links p {
	font-size: 0.9rem;
	color: var(--text-light);
	margin-bottom: 10px;
}
.eccredhh-404-links ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}
.eccredhh-404-links li a {
	display: inline-block;
	padding: 6px 16px;
	background: #fff;
	border: 1px solid #e0e6ee;
	border-radius: 20px;
	font-size: 0.85rem;
	color: var(--primary-color);
	text-decoration: none;
	transition: var(--transition);
}
.eccredhh-404-links li a:hover {
	background: var(--primary-color);
	color: #fff;
	border-color: var(--primary-color);
}

/* ============================================================
   COMPREHENSIVE RESPONSIVE — ALL BREAKPOINTS
   ============================================================ */

/* ── Tablet: 1024px ── */
@media (max-width: 1024px) {
	/* Hero */
	.eccredhh-hero-cards { grid-template-columns: 1fr 1fr; gap: 16px; }

	/* Stats strip */
	.eccredhh-stats-strip .wp-block-columns { flex-wrap: wrap; }

	/* Blog grid: 2 columns */
	.eccredhh-blog-grid .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }

	/* Partners grid: 2 columns */
	.eccredhh-partners-grid { grid-template-columns: repeat(2, 1fr); }

	/* Archive grid: 2 columns */
	.eccredhh-archive-query .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }

	/* Related posts: 2 columns */
	.eccredhh-related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Large mobile / small tablet: 768px ── */
@media (max-width: 768px) {
	/* Header: reduce padding + collapse logo size */
	.eccredhh-header .eccredhh-logo { gap: 8px; }

	/* Hero text */
	.eccredhh-hero-inner h1 { font-size: clamp(2rem, 7vw, 3.5rem) !important; }
	.eccredhh-hero-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
	.eccredhh-hero-card { padding: 20px; }

	/* Section titles */
	.eccredhh-section-title { font-size: clamp(1.4rem, 4vw, 2rem) !important; }

	/* About section columns → stack */
	.eccredhh-about .wp-block-columns { flex-direction: column !important; }

	/* History timeline */
	.eccredhh-history-grid { grid-template-columns: 1fr !important; }

	/* Mission columns → stack */
	.eccredhh-mission .wp-block-columns { flex-direction: column !important; }

	/* Work/showcase cards */
	.eccredhh-work-grid .wp-block-columns { flex-direction: column !important; }

	/* Stats strip: 2-col grid */
	.eccredhh-stats-strip .wp-block-columns { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 0; }
	.eccredhh-stat-item { padding: 20px 16px !important; }

	/* Blog section: 1 column */
	.eccredhh-blog-grid .wp-block-post-template { grid-template-columns: 1fr !important; }
	.eccredhh-blog-card { max-width: 520px; margin: 0 auto; }

	/* Archive grid: 1 column */
	.eccredhh-archive-query .wp-block-post-template { grid-template-columns: 1fr !important; }

	/* Archive hero */
	.eccredhh-archive-hero h1 { font-size: 2rem !important; }
	.eccredhh-archive-hero { padding-top: 50px !important; padding-bottom: 40px !important; }

	/* Archive tabs: scrollable */
	.eccredhh-tabs-wrapper { overflow-x: auto; }
	.eccredhh-tabs-list { flex-wrap: nowrap !important; min-width: max-content; }

	/* Single post cover */
	.eccredhh-post-cover { min-height: 380px !important; }
	.eccredhh-post-h1 { font-size: 1.8rem !important; }

	/* Contact section columns → stack */
	.eccredhh-contact .wp-block-columns { flex-direction: column !important; }
	.eccredhh-wa-link { margin-top: 24px; }

	/* Partners */
	.eccredhh-partners-grid { grid-template-columns: 1fr; }
	.eccredhh-partner-card { flex-direction: row; }

	/* Related posts */
	.eccredhh-related-grid { grid-template-columns: 1fr; }
}

/* ── Mobile: 600px ── */
@media (max-width: 600px) {
	/* Reduce global section padding */
	section.wp-block-group { padding-top: 56px !important; padding-bottom: 56px !important; }

	/* Hero CTA buttons: stack */
	.wp-block-buttons { flex-direction: column; align-items: center; }

	/* Stats: 1 column */
	.eccredhh-stats-strip .wp-block-columns { grid-template-columns: 1fr !important; }
	.eccredhh-stat-number { font-size: 2.6rem !important; }

	/* Single post byline: wrap nicely */
	.eccredhh-post-byline { flex-direction: column; gap: 6px !important; }
	.eccredhh-byline-sep { display: none; }
	.eccredhh-post-article { padding-left: 16px !important; padding-right: 16px !important; }

	/* Post actions: stack */
	.eccredhh-post-actions { flex-direction: column; align-items: flex-start; gap: 12px; }

	/* Archive no-results: center */
	.eccredhh-no-posts { padding: 40px 20px; }

	/* Pagination: smaller */
	.eccredhh-archive-pagination .wp-block-query-pagination { gap: 6px; }

	/* 404 actions: stack */
	.eccredhh-404-actions { flex-direction: column; align-items: center; }

	/* Back-to-top: smaller */
	.eccredhh-back-top { width: 40px; height: 40px; bottom: 16px; right: 16px; border-radius: 6px; }
}

/* ── Small mobile: 400px ── */
@media (max-width: 400px) {
	.eccredhh-hero-inner h1 { font-size: 2rem !important; }
	.eccredhh-archive-title { font-size: 1.6rem !important; }
	.eccredhh-post-h1 { font-size: 1.5rem !important; }
	.eccredhh-partner-logo { width: 48px; height: 48px; font-size: 0.6rem; }
}

/* ── Touch / hover media query ── */
@media (hover: none) {
	/* Enlarge tap targets on touch devices */
	.eccredhh-tab-link { min-height: 44px; display: flex; align-items: center; }
	.eccredhh-back-btn { min-height: 44px; display: inline-flex; align-items: center; }
	.eccredhh-like-btn { min-height: 44px; }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
#eccredhh-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 27, 46, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  z-index: 99999;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.25,.8,.25,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}
#eccredhh-cookie-banner.eccredhh-cookie-show {
  transform: translateY(0);
}
.eccredhh-cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.eccredhh-cookie-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  color: rgba(255,255,255,0.85);
}
.eccredhh-cookie-text a {
  color: #c9dde8;
  text-decoration: underline;
}
.eccredhh-cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.eccredhh-cookie-btn-accept,
.eccredhh-cookie-btn-refuse {
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.eccredhh-cookie-btn-accept {
  background: var(--accent-color);
  color: #fff;
  border: none;
}
.eccredhh-cookie-btn-refuse {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.35);
}
.eccredhh-cookie-btn-accept:hover,
.eccredhh-cookie-btn-refuse:hover { opacity: 0.82; }
@media (max-width: 540px) {
  .eccredhh-cookie-inner { padding: 12px 16px; }
  .eccredhh-cookie-btns { width: 100%; justify-content: flex-end; }
}

/* ============================================================
   PRIVACY POLICY / STATIC PAGE CONTENT
   ============================================================ */
.eccredhh-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 2em 0 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid #e8edf2;
}
.eccredhh-prose p,
.eccredhh-prose li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-dark);
}
.eccredhh-prose a { color: var(--accent-color); }
.eccredhh-prose ul { padding-left: 1.4em; }
.eccredhh-prose li { margin-bottom: 0.3em; }

/* ============================================================
   PARTNER ADMIN – DRAG-TO-REORDER
   ============================================================ */
.partner-row [title*="Glisser"] { cursor: grab; }
.partner-row [title*="Glisser"]:active { cursor: grabbing; }

/* ============================================================
   MOBILE IMPROVEMENTS — v2.2
   ============================================================ */

/* ── 1. Prevent horizontal overflow on all screen sizes ──
   Use `overflow-x: clip` instead of `hidden`:
   - clip clips overflow just like hidden
   - BUT clip does NOT create a scroll container
   - hidden on html/body forces overflow-y:auto, making html/body
     a scroll container which breaks `position: sticky` on the header ── */
html,
body {
	overflow-x: clip;
	max-width: 100%;
}

/* ── 1b. Scroll padding — prevent anchor targets hiding behind sticky header ──
   Use the WP CSS variable --wp-admin--admin-bar--height which is 32px on
   desktop and 46px on mobile when logged in, and undefined (falls back
   to 0px) for regular visitors. This handles all cases cleanly.           ── */
html {
	scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 90px);
}
@media screen and (max-width: 600px) {
	html {
		scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 80px);
	}
}

/* ── 2. Hero: use small viewport height on modern browsers ── */
.eccredhh-hero,
.wp-block-cover.eccredhh-hero {
	min-height: 100vh;           /* fallback */
	min-height: 100svh;          /* small viewport — excludes mobile browser chrome */
}
@media (max-width: 768px) {
	.eccredhh-hero,
	.wp-block-cover.eccredhh-hero {
		min-height: 100svh;
	}
	/* Tighten hero inner padding */
	.eccredhh-hero .wp-block-cover__inner-container {
		padding-top: 100px;
		padding-bottom: 60px;
	}
}

/* ── 3. WP Navigation block — hamburger button + professional overlay ── */

/* ─ Hamburger toggle button ─ */
.wp-block-navigation__responsive-container-open {
	min-width: 44px;
	min-height: 44px;
	padding: 8px;
	background: transparent;
	border: none;
	cursor: pointer;
	border-radius: 6px;
	transition: background 0.2s ease;
}
.wp-block-navigation__responsive-container-open:hover {
	background: rgba(15, 44, 76, 0.08);
}
.wp-block-navigation__responsive-container-open svg {
	fill: var(--primary-color);
	width: 22px;
	height: 22px;
	display: block;
}

/* ─ Full-screen dark overlay ─ */
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: var(--primary-color) !important;
	z-index: 100000 !important;
	display: flex !important;
	flex-direction: column !important;
	overflow-y: auto !important;
	padding: 0 !important;
}

/* ─ responsive-close div: fills full height ─ */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-close {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	flex: 1 !important;
	min-height: 100vh !important;
	min-height: 100dvh !important;
}

/* ─ Dialog: column layout, relative for abs close btn ─ */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-dialog {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	flex: 1 !important;
	position: relative !important;
}

/* ─ Brand header via pseudo-element ─ */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-dialog::before {
	content: 'ECCREDHH' !important;
	display: block !important;
	color: var(--white) !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.18em !important;
	padding: 20px 24px 18px !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
	flex-shrink: 0 !important;
}

/* ─ Close (X) button: absolute top-right ─ */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-close {
	position: absolute !important;
	top: 12px !important;
	right: 16px !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.12) !important;
	border: none !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background 0.2s ease !important;
	z-index: 1 !important;
}
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-close:hover {
	background: rgba(255, 255, 255, 0.24) !important;
}
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-close svg {
	fill: var(--white) !important;
	width: 18px !important;
	height: 18px !important;
}

/* ─ Content area ─ */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-content {
	display: flex !important;
	flex-direction: column !important;
	padding: 8px 0 48px !important;
	flex: 1 !important;
}

/* ─ Menu list ─ */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__container {
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	gap: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	list-style: none !important;
	width: 100% !important;
}

/* ─ Each nav item row ─ */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item {
	width: 100% !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
	margin: 0 !important;
	align-items: stretch !important;
	flex-direction: row !important;
}
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item:first-child {
	border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* ─ Nav link ─ */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item__content {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	padding: 0 24px !important;
	font-size: 0.88rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	color: rgba(255, 255, 255, 0.82) !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	min-height: 58px !important;
	transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease !important;
	position: relative !important;
	overflow: hidden !important;
}

/* Right-arrow icon */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item__content::after {
	content: '›' !important;
	font-size: 1.4rem !important;
	line-height: 1 !important;
	opacity: 0.3 !important;
	transition: opacity 0.15s ease, transform 0.15s ease !important;
	flex-shrink: 0 !important;
	font-weight: 300 !important;
}

/* Left red accent bar */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item__content::before {
	content: '' !important;
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	bottom: 0 !important;
	width: 3px !important;
	background: var(--accent-color) !important;
	opacity: 0 !important;
	transition: opacity 0.15s ease !important;
}

/* Hover / focus state */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item:hover
.wp-block-navigation-item__content,
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item:focus-within
.wp-block-navigation-item__content {
	background: rgba(255, 255, 255, 0.06) !important;
	color: var(--white) !important;
	padding-left: 30px !important;
}
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item:hover
.wp-block-navigation-item__content::before,
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item:focus-within
.wp-block-navigation-item__content::before {
	opacity: 1 !important;
}
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item:hover
.wp-block-navigation-item__content::after,
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item:focus-within
.wp-block-navigation-item__content::after {
	opacity: 0.75 !important;
	transform: translateX(5px) !important;
}

/* ─ Footer tagline at bottom of overlay ─ */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-content::after {
	content: 'Droits Humains · Haïti' !important;
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	font-size: 0.7rem !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	color: rgba(255, 255, 255, 0.22) !important;
	padding: 32px 24px 16px !important;
	margin-top: auto !important;
}

/* ── 4. Section padding — more aggressive reduction on small mobile ── */
@media (max-width: 480px) {
	section.wp-block-group[style*="padding-top:80px"],
	section.wp-block-group[style*="padding-top: 80px"] {
		padding-top: 48px !important;
		padding-bottom: 48px !important;
	}
	section.wp-block-group[style*="padding-top:50px"],
	section.wp-block-group[style*="padding-top: 50px"] {
		padding-top: 36px !important;
		padding-bottom: 36px !important;
	}
}

/* ── 5. Contact form — reduce padding on mobile ── */
@media (max-width: 600px) {
	.eccredhh-form-wrapper {
		padding: 24px 18px;
	}
	.eccredhh-contact-layout {
		margin-top: 32px !important;
	}
}

/* ── 6. Hero title — clamp for very small screens ── */
@media (max-width: 480px) {
	.eccredhh-hero h1,
	.eccredhh-hero-inner h1 {
		font-size: clamp(1.8rem, 9vw, 2.4rem) !important;
		line-height: 1.15;
	}
	.eccredhh-hero p { font-size: 0.95rem !important; }
	.eccredhh-hero-card { padding: 16px; }
	.eccredhh-hero-cards { gap: 12px; margin-top: 24px; }
}

/* ── 7. Work cards — 2-column grid at tablet, 1-column at mobile ── */
@media (max-width: 640px) {
	.eccredhh-work-grid {
		grid-template-columns: 1fr !important;
		gap: 20px;
	}
}

/* ── 8. Stats strip — stronger override for is-not-stacked-on-mobile ── */
@media (max-width: 640px) {
	.eccredhh-stats-strip .wp-block-columns.is-not-stacked-on-mobile {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		flex-wrap: wrap !important;
	}
	.eccredhh-stats-strip .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
		flex-basis: auto !important;
		min-width: auto !important;
		width: auto !important;
	}
}
@media (max-width: 360px) {
	.eccredhh-stats-strip .wp-block-columns.is-not-stacked-on-mobile {
		grid-template-columns: 1fr !important;
	}
}

/* ── 9. Social links — proper sizing and wrapping on mobile ── */
@media (max-width: 600px) {
	.eccredhh-social-links {
		gap: 8px !important;
		flex-wrap: wrap;
	}
	.wp-block-social-links .wp-block-social-link a {
		min-width: 44px;
		min-height: 44px;
	}
}

/* ── 10. Blog grid — ensure consistent card height on 1-col mobile ── */
@media (max-width: 600px) {
	.eccredhh-blog-card { max-width: 100%; margin: 0; }
	.eccredhh-blog-grid .wp-block-post-template { gap: 20px !important; }
}

/* ── 11. About section image — full-width portrait on mobile ── */
@media (max-width: 768px) {
	.eccredhh-about-img img { max-height: 280px; object-fit: cover; }
	.eccredhh-about-grid { gap: 30px; }
}

/* ── 12. Section subtitle — smaller on mobile ── */
@media (max-width: 600px) {
	.eccredhh-section-subtitle {
		font-size: 0.92rem !important;
		padding: 0 8px;
	}
}

/* ── 13. Footer social buttons — bigger tap targets on mobile ── */
@media (max-width: 600px) {
	.eccredhh-footer-social {
		gap: 8px !important;
	}
	.eccredhh-footer-social .eccredhh-social-btn {
		width: 44px !important;
		height: 44px !important;
	}
}

/* ── 14. Improve form input height for touch ── */
@media (max-width: 768px) {
	.eccredhh-form-wrapper input[type="text"],
	.eccredhh-form-wrapper input[type="email"],
	.eccredhh-form-wrapper input,
	.eccredhh-form-wrapper textarea {
		font-size: 16px; /* prevents iOS auto-zoom on focus */
		padding: 13px 14px;
	}
	.eccredhh-form-wrapper textarea {
		min-height: 120px;
	}
}

/* ── 15. Work card image — fixed height on mobile ── */
@media (max-width: 640px) {
	.eccredhh-work-img,
	.eccredhh-work-img img,
	.wp-block-image.eccredhh-work-img img {
		height: 180px !important;
		width: 100%;
		object-fit: cover;
	}
}

/* ── 16. Partners CTA button — full-width on mobile ── */
@media (max-width: 480px) {
	.eccredhh-partners-cta { text-align: center; margin-top: 24px; }
	.eccredhh-partners-cta .eccredhh-btn-primary { width: 100%; justify-content: center; }
}

/* ── 17. Diff-box — reduce padding on mobile ── */
@media (max-width: 600px) {
	.eccredhh-diff-box { padding: 20px 16px; }
	.eccredhh-split { gap: 30px; margin-top: 24px; }
}

/* ── 18. Header — ensure logo text truncates gracefully ── */
@media (max-width: 480px) {
	.eccredhh-logo .wp-block-site-title a {
		font-size: 1rem !important;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 160px;
		display: block;
	}
}

/* ── 19. Value items — center-align icons on mobile ── */
@media (max-width: 480px) {
	.eccredhh-value-item { text-align: center; }
	.eccredhh-value-icon { margin: 0 auto 12px; }
}

/* ── 20. Cookie banner — full-width buttons on very small screens ── */
@media (max-width: 400px) {
	.eccredhh-cookie-btns { flex-direction: column; width: 100%; }
	.eccredhh-cookie-btn-accept,
	.eccredhh-cookie-btn-refuse { width: 100%; text-align: center; padding: 10px 16px; }
}

/* ── 21. Navigation — hamburger at ≤1024 px ────────────────────────────
   Logo (≈171 px) + 7 nav links (≈758 px) = 929 px total.
   Available content width at 1024 px viewport = 1024 − 48 px padding = 976 px.
   Below 1024 px the links would wrap/overflow; show hamburger instead.  ─ */
@media (max-width: 1024px) {
	/* Hide the desktop nav links container */
	.eccredhh-header
	.wp-block-navigation__responsive-container:not(.is-menu-open):not(.hidden-by-default) {
		display: none !important;
	}
	/* Show the hamburger toggle button */
	.eccredhh-header .wp-block-navigation__responsive-container-open {
		display: flex !important;
		align-items: center;
		justify-content: center;
	}
}

/* ── 22. Header height — slightly smaller on phones ── */
@media (max-width: 600px) {
	.eccredhh-header {
		height: 68px !important;
		min-height: 68px !important;
	}
	.eccredhh-logo img { height: 46px !important; }
}

/* ── 23. Prevent horizontal scroll from WP admin-bar on mobile (clip = no scroll-container) ── */
@media (max-width: 782px) {
	html.wp-toolbar { overflow-x: clip; }
	html.wp-toolbar body { overflow-x: clip; }
}

