/* ==========================================================================
   Credo Core - brand tokens, header/menu, forms. Content styling lives in
   Elementor; this file only covers what Elementor Free cannot do natively.
   ========================================================================== */
:root {
	--credo-olive: #695c3a;
	--credo-olive-dark: #544a2f;
	--credo-gold: #c8953a;
	--credo-tan: #bf8c54;
	--credo-cream: #faf8f4;
	--credo-cream-2: #fdfaf4;
	--credo-ink: #19110b;
	--credo-green: #323a2d;
	--credo-gray: #666666;
	--credo-line: #e7e1d3;
	--credo-radius: 8px;
	--credo-font-head: "Poppins", sans-serif;
	--credo-font-body: "Inter", sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--credo-font-body); color: var(--credo-gray); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; clip: auto; background: #fff; color: var(--credo-ink); padding: 10px 16px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--credo-gold); outline-offset: 2px; }

/* ---------- Header ---------- */
.credo-site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .2s ease; }
.admin-bar .credo-site-header { top: 32px; }
.credo-site-header.is-scrolled { box-shadow: 0 4px 24px rgba(25,17,11,.08); }
.credo-site-header .elementor-widget-shortcode { margin: 0; }

/* ---------- Menu ---------- */
.credo-menu { position: relative; }
.credo-menu .credo-menu__toggle, .credo-menu .credo-menu__sub-toggle { display: none; background: transparent; border: 0; border-radius: 8px; box-shadow: none; padding: 12px; cursor: pointer; color: var(--credo-ink); min-width: 44px; min-height: 44px; }
.credo-menu .credo-menu__toggle:hover, .credo-menu .credo-menu__toggle:focus, .credo-menu .credo-menu__sub-toggle:hover, .credo-menu .credo-menu__sub-toggle:focus { background: var(--credo-cream); color: var(--credo-olive); }
.credo-menu .credo-menu__toggle:focus-visible, .credo-menu .credo-menu__sub-toggle:focus-visible { outline: 2px solid var(--credo-gold); outline-offset: 1px; }
.credo-menu__bars { display: block; width: 22px; }
.credo-menu__bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.credo-menu.is-open .credo-menu__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.credo-menu.is-open .credo-menu__bars i:nth-child(2) { opacity: 0; }
.credo-menu.is-open .credo-menu__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.credo-menu__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 4px; }
.credo-menu__list li { position: relative; margin: 0; }
.credo-menu__list > li > a { display: block; padding: 12px 16px; font: 500 16px/1.2 var(--credo-font-body); color: var(--credo-ink); text-decoration: none; transition: color .2s ease; }
.credo-menu__list > li > a:hover,
.credo-menu__list > li.current-menu-item > a,
.credo-menu__list > li.current-menu-ancestor > a { color: var(--credo-olive); }
.credo-menu__list > li.current-menu-item > a { box-shadow: inset 0 -2px 0 var(--credo-gold); }
.credo-menu__list .menu-item-has-children { display: flex; align-items: center; flex-wrap: wrap; }
.credo-menu .credo-menu__sub-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 8px 6px; margin-left: -6px; min-width: 28px; }
.credo-menu__list .sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--credo-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(25,17,11,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 60; }
.credo-menu__list .menu-item-has-children:hover > .sub-menu,
.credo-menu__list .menu-item-has-children:focus-within > .sub-menu,
.credo-menu__list .menu-item-has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.credo-menu__list .sub-menu a { display: block; padding: 10px 14px; border-radius: 8px; font: 500 15px/1.3 var(--credo-font-body); color: var(--credo-ink); text-decoration: none; }
.credo-menu__list .sub-menu a:hover { background: var(--credo-cream); color: var(--credo-olive); }

@media (max-width: 1024px) {
	.credo-menu .credo-menu__toggle { display: inline-flex; align-items: center; justify-content: center; }
	.credo-menu__panel { position: fixed; left: 0; right: 0; top: var(--credo-header-h, 76px); max-height: calc(100vh - var(--credo-header-h, 76px)); overflow-y: auto; background: #fff; padding: 8px 20px 28px; border-top: 1px solid var(--credo-line); box-shadow: 0 24px 40px rgba(25,17,11,.12); display: none; }
	.admin-bar .credo-menu__panel { top: calc(var(--credo-header-h, 76px) + 46px); }
	.credo-menu.is-open .credo-menu__panel { display: block; }
	.credo-menu__list { flex-direction: column; align-items: stretch; gap: 0; }
	.credo-menu__list > li { border-bottom: 1px solid var(--credo-line); }
	.credo-menu__list > li > a { padding: 16px 4px; font-size: 17px; }
	.credo-menu__list .menu-item-has-children > a { flex: 1; }
	.credo-menu .credo-menu__sub-toggle { margin: 0; padding: 8px 14px; }
	.credo-menu__list .menu-item-has-children.is-open > .sub-menu { display: block; }
	.credo-menu__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; min-width: 0; width: 100%; padding: 0 0 10px 12px; display: none; }
}

/* ---------- Honeypot ---------- */
.credo-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Forms (Contact Form 7) ---------- */
.wpcf7 form { margin: 0; }
.wpcf7 p { margin: 0 0 14px; }
.wpcf7 label { display: block; font: 600 13px/1.4 var(--credo-font-body); color: var(--credo-ink); margin-bottom: 6px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea, .wpcf7 input[type="file"] {
	width: 100%; border: 1px solid #d9d2c1; border-radius: var(--credo-radius); background: #fff; padding: 13px 14px; font: 400 15px/1.4 var(--credo-font-body); color: var(--credo-ink); min-height: 48px; transition: border-color .2s ease, box-shadow .2s ease;
}
.wpcf7 textarea { min-height: 110px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { border-color: var(--credo-olive); box-shadow: 0 0 0 3px rgba(105,92,58,.18); outline: none; }
.wpcf7 input[type="file"] { padding: 10px; font-size: 14px; }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; font-size: 13px; color: var(--credo-gray); display: flex; gap: 8px; align-items: flex-start; }
.wpcf7 .wpcf7-acceptance input { margin-top: 3px; accent-color: var(--credo-olive); }
.wpcf7 input[type="submit"], .wpcf7 button[type="submit"] {
	width: 100%; background: var(--credo-olive); color: #fff; border: 0; border-radius: var(--credo-radius); padding: 15px 24px; min-height: 50px; cursor: pointer; font: 600 14px/1 var(--credo-font-head); letter-spacing: .08em; text-transform: uppercase; transition: background .2s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--credo-olive-dark); }
.wpcf7 .wpcf7-not-valid-tip { color: #b3261e; font-size: 13px; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 14px 0 0; border-radius: var(--credo-radius); padding: 12px 14px; font-size: 14px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #2e7d32; color: #1b5e20; background: #edf7ee; }
.wpcf7-spinner { display: none; }

.credo-form-grid .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .credo-form-grid .form-row { grid-template-columns: 1fr; } }

/* Lead form card inside service-page heroes */
.credo-lead-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 24px 60px rgba(25,17,11,.14); border: 1px solid var(--credo-line); }
@media (max-width: 767px) { .credo-lead-card { padding: 20px; border-radius: 14px; } }

/* Newsletter (footer) */
.credo-newsletter .wpcf7 form { display: flex; gap: 10px; background: #fff; padding: 8px; border-radius: 10px; align-items: stretch; }
.credo-newsletter .wpcf7 form > p { margin: 0; }
.credo-newsletter .wpcf7 form > p:first-of-type { flex: 1; }
.credo-newsletter .wpcf7 input[type="email"] { border: 0; box-shadow: none; min-height: 48px; }
.credo-newsletter .wpcf7 input[type="submit"] { width: auto; padding: 0 26px; min-height: 48px; font-size: 11px; }
.credo-newsletter .wpcf7 form .wpcf7-response-output { position: absolute; margin-top: 10px; color: #fff; }
.credo-newsletter .wpcf7 form.sent .wpcf7-response-output { background: transparent; color: #fff; }
.credo-newsletter .wpcf7 { position: relative; }
@media (max-width: 600px) {
	.credo-newsletter .wpcf7 form { flex-direction: column; }
	.credo-newsletter .wpcf7 input[type="submit"] { width: 100%; }
}

/* ---------- Components built with native Elementor widgets ---------- */
.credo-stat .elementor-counter-number-wrapper { justify-content: center; }
.credo-card-lift { transition: transform .25s ease, box-shadow .25s ease; }
.credo-card-lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(25,17,11,.12) !important; }
.credo-round-img img { border-radius: 16px; }
.credo-gallery .gallery-item img, .credo-gallery .elementor-gallery-item__image { border-radius: 14px; }
.elementor-widget-button .elementor-button { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.elementor-widget-image-box .elementor-image-box-img img { border-radius: 16px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive image grid (Elementor Basic Gallery has fixed columns) ---------- */
.credo-gallery .gallery { display: grid !important; gap: 14px; grid-template-columns: repeat(5, 1fr); margin: 0 !important; }
.credo-gallery.credo-cols-4 .gallery { grid-template-columns: repeat(4, 1fr); }
.credo-gallery .gallery::before, .credo-gallery .gallery::after { display: none; }
.credo-gallery .gallery-item { max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; }
.credo-gallery .gallery-icon, .credo-gallery .gallery-icon a { display: block; }
.credo-gallery .gallery-icon img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; box-shadow: 0 6px 18px rgba(25,17,11,.12); display: block; }
@media (max-width: 1024px) { .credo-gallery .gallery, .credo-gallery.credo-cols-4 .gallery { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 767px) { .credo-gallery .gallery, .credo-gallery.credo-cols-4 .gallery { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; } }

/* Mobile header: toggle on the far right */
@media (max-width: 1024px) {
	.credo-menu { display: flex; justify-content: flex-end; }
}

/* ---------- Section heading motion ---------- */
.credo-bar .elementor-heading-title::after { content: ""; display: block; height: 3px; width: 0; margin: 16px auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--credo-gold), var(--credo-tan)); transition: width .9s cubic-bezier(.22,1,.36,1) .5s; }
.credo-bar-left .elementor-heading-title::after { margin-left: 0; }
.credo-bar.animated .elementor-heading-title::after, .credo-bar:not(.elementor-invisible) .elementor-heading-title::after { width: 64px; }
.credo-reveal .elementor-heading-title { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
	.credo-bar .elementor-heading-title::after { width: 64px; transition: none; }
}

/* ---------- Published book cards: identical boxes ---------- */
.credo-book { overflow: hidden; }
.credo-book .elementor-image-box-img { display: block; overflow: hidden; border-radius: 12px; margin: 0 !important; }
.credo-book .elementor-image-box-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; border-radius: 0; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.credo-book:hover .elementor-image-box-img img { transform: scale(1.06); }
.credo-book .elementor-image-box-content { padding: 14px 6px 8px; width: 100%; }
.credo-book .elementor-image-box-description { margin: 6px 0 0; }

/* ---------- Selected Work showcase (dark, filterable) ---------- */
.credo-work-section { background-image: radial-gradient(circle at 10% 0%, rgba(200,149,58,.20), transparent 42%), radial-gradient(circle at 100% 100%, rgba(105,92,58,.38), transparent 46%); }
.credo-filter .elementor-button { cursor: pointer; }
.credo-filter.is-active .elementor-button { background: #c8953a !important; color: #19110b !important; border-color: #c8953a !important; }

.e-con.credo-work { position: relative; overflow: hidden !important; aspect-ratio: 3 / 4; background: #2a2118; isolation: isolate; cursor: pointer; }
.credo-work > .elementor-widget-image { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.credo-work > .elementor-widget-image .elementor-widget-container, .credo-work > .elementor-widget-image a, .credo-work > .elementor-widget-image img { display: block; width: 100%; height: 100%; }
.credo-work img { object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.credo-work:hover img { transform: scale(1.09); }
.e-con.credo-work__info { position: absolute !important; left: 0; right: 0; bottom: 0; z-index: 2; padding: 70px 20px 20px !important; background: linear-gradient(to top, rgba(25,17,11,.95) 0%, rgba(25,17,11,.72) 50%, rgba(25,17,11,0) 100%); }
.credo-work__tag { max-height: 0; opacity: 0; overflow: hidden; margin: 0 !important; transition: max-height .45s cubic-bezier(.22,1,.36,1), opacity .35s ease; }
.credo-work:hover .credo-work__tag, .credo-work:focus-within .credo-work__tag { max-height: 40px; opacity: 1; }
.credo-work::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .3s ease; }
.credo-work:hover::after { box-shadow: inset 0 0 0 2px #c8953a; }
.credo-work.is-hidden { display: none !important; }
.credo-work.is-showing { animation: credoPop .55s cubic-bezier(.22,1,.36,1) both; }
@keyframes credoPop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@media (hover: none) and (min-width: 768px) {
	.credo-work__tag { max-height: 40px; opacity: 1; }
}
@media (max-width: 767px) {
	.credo-work__info { padding: 44px 12px 12px !important; }
	.credo-work__tag, .credo-work:hover .credo-work__tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.credo-work img, .credo-book .elementor-image-box-img img, .credo-work__tag { transition: none; }
	.credo-work.is-showing { animation: none; }
}

/* ---------- Hero cover-flow (centre cover in front, rest layered behind) ---------- */
.credo-cf { position: relative; width: 100%; aspect-ratio: 1.42 / 1; --cf-w: 40%; --cf-x1: 62%; --cf-x2: 94%; overflow: hidden; display: block; }
.credo-cf > .credo-cf__item { position: absolute !important; left: 50%; top: 50%; width: var(--cf-w) !important; margin: 0 !important; padding: 0; cursor: pointer;
	transform: translate(-50%, -50%); opacity: 0; will-change: transform, opacity;
	transition: transform .95s cubic-bezier(.22,1,.36,1), opacity .6s ease, filter .6s ease; }
.credo-cf > .credo-cf__item:first-child { opacity: 1; z-index: 6; }
.credo-cf .credo-cf__item img { display: block; width: 100%; height: auto; aspect-ratio: 420 / 545; object-fit: cover; border-radius: 14px; box-shadow: 0 16px 34px rgba(25,17,11,.28); }
.credo-cf.is-ready > .credo-cf__item[data-pos="0"]  { transform: translate(-50%, -50%) scale(1); opacity: 1; z-index: 6; filter: none; }
.credo-cf.is-ready > .credo-cf__item[data-pos="1"]  { transform: translate(calc(-50% + var(--cf-x1)), -47%) scale(.8);  opacity: 1; z-index: 5; filter: brightness(.95); }
.credo-cf.is-ready > .credo-cf__item[data-pos="-1"] { transform: translate(calc(-50% - var(--cf-x1)), -47%) scale(.8);  opacity: 1; z-index: 5; filter: brightness(.95); }
.credo-cf.is-ready > .credo-cf__item[data-pos="2"]  { transform: translate(calc(-50% + var(--cf-x2)), -45%) scale(.66); opacity: 1; z-index: 4; filter: brightness(.9); }
.credo-cf.is-ready > .credo-cf__item[data-pos="-2"] { transform: translate(calc(-50% - var(--cf-x2)), -45%) scale(.66); opacity: 1; z-index: 4; filter: brightness(.9); }
.credo-cf.is-ready > .credo-cf__item[data-pos="3"],
.credo-cf.is-ready > .credo-cf__item[data-pos="-3"] { transform: translate(-50%, -48%) scale(.5); opacity: 0; z-index: 1; pointer-events: none; }
@media (max-width: 767px) {
	.credo-cf { aspect-ratio: 1.22 / 1; --cf-w: 46%; --cf-x1: 58%; --cf-x2: 76%; }
}
@media (prefers-reduced-motion: reduce) {
	.credo-cf > .credo-cf__item { transition: none; }
}

/* ---------- Modern file upload (Contact Form 7) ---------- */
.wpcf7 label small { display: block; font-weight: 400; font-size: 12px; color: #8a8575; margin-top: 2px; }
.wpcf7 input[type="file"] {
	padding: 12px 14px; min-height: 58px; border: 1.5px dashed #c9bfa6; border-radius: 12px; cursor: pointer; font-size: 14px; color: #666;
	background: #faf8f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%23695c3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='M7 9l5-5 5 5'/%3E%3Cpath d='M20 16v3a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3'/%3E%3C/svg%3E") no-repeat right 18px center / 24px;
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.wpcf7 input[type="file"]:hover { border-color: #695c3a; background-color: #fff; }
.wpcf7 input[type="file"]:focus-visible { border-style: solid; border-color: #695c3a; box-shadow: 0 0 0 3px rgba(105,92,58,.18); outline: none; }
.wpcf7 input[type="file"]::file-selector-button {
	margin-right: 14px; padding: 10px 18px; border: 0; border-radius: 8px; background: #695c3a; color: #fff; cursor: pointer;
	font: 600 12px/1 "Poppins", sans-serif; letter-spacing: .07em; text-transform: uppercase; transition: background-color .2s ease;
}
.wpcf7 input[type="file"]:hover::file-selector-button { background: #544a2f; }

/* ---------- "Available on" retailer chips (service hero) ---------- */
.credo-retail .elementor-icon-list-items { display: flex; flex-wrap: wrap; gap: 10px; }
.credo-retail .elementor-icon-list-item { margin: 0 !important; padding: 8px 15px 8px 13px !important; background: #fff; border: 1px solid #e7e1d3; border-radius: 50px; box-shadow: 0 2px 10px rgba(25,17,11,.05); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.credo-retail .elementor-icon-list-item:hover { border-color: #c8953a; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(25,17,11,.10); }
.credo-retail .elementor-icon-list-icon { padding-right: 8px !important; }
@media (max-width: 1024px) { .credo-retail .elementor-icon-list-items { justify-content: center; } }

/* ---------- Chat / call band ---------- */
.credo-talk .credo-talk__btns .elementor-button { white-space: nowrap; }

/* Bigger icons inside the chat / call buttons */
.credo-talk .elementor-button .elementor-button-icon,
.credo-lead-panel .elementor-button .elementor-button-icon { font-size: 24px; line-height: 1; display: inline-flex; align-items: center; }
.credo-talk .elementor-button .elementor-button-icon svg,
.credo-lead-panel .elementor-button .elementor-button-icon svg { width: 1em; height: 1em; }
.credo-talk .elementor-button-content-wrapper, .credo-lead-panel .elementor-button-content-wrapper { gap: 12px; align-items: center; }

/* Heading accent bar follows the heading's alignment per breakpoint */
@media (max-width: 1024px) { .credo-bar-left.credo-bar-t-center .elementor-heading-title::after { margin-left: auto; } }
@media (max-width: 767px)  { .credo-bar-left.credo-bar-m-center .elementor-heading-title::after { margin-left: auto; }
                             .credo-bar-left:not(.credo-bar-m-center):not(.credo-bar-t-center) .elementor-heading-title::after { margin-left: 0; } }

/* ---------- Footer newsletter: glass pill ---------- */
.credo-newsletter .wpcf7 form { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 60px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 40px rgba(0,0,0,.28); transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease; }
.credo-newsletter .wpcf7 form:focus-within { border-color: #c8953a; background: rgba(255,255,255,.12); box-shadow: 0 14px 40px rgba(0,0,0,.28), 0 0 0 4px rgba(200,149,58,.18); }
.credo-newsletter .wpcf7 form > p { margin: 0; }
.credo-newsletter .wpcf7 form > p:first-of-type { flex: 1; min-width: 0; }
.credo-newsletter .wpcf7 .wpcf7-form-control-wrap { display: block; }
.credo-newsletter .wpcf7 input[type="email"] { width: 100%; min-height: 52px; border: 0; border-radius: 40px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23c8953a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='M3.5 7.5l8.5 6 8.5-6'/%3E%3C/svg%3E") no-repeat 18px center; padding: 0 18px 0 50px; color: #fff; font-size: 16px; box-shadow: none; }
.credo-newsletter .wpcf7 input[type="email"]::placeholder { color: rgba(255,255,255,.7); opacity: 1; }
.credo-newsletter .wpcf7 input[type="email"]:focus { box-shadow: none; border: 0; outline: none; }
.credo-newsletter .wpcf7 input[type="submit"] { width: auto; min-height: 52px; padding: 0 32px; border-radius: 40px; background: #c8953a; color: #19110b; font-size: 12px; letter-spacing: .1em; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.credo-newsletter .wpcf7 input[type="submit"]:hover { background: #fff; color: #19110b; transform: translateY(-1px); }
.credo-newsletter .wpcf7 .wpcf7-not-valid-tip { position: absolute; left: 24px; bottom: -26px; color: #ffb4a8; }
.credo-newsletter .wpcf7 form .wpcf7-response-output { position: static; margin: 14px 0 0; text-align: center; border: 0; background: transparent; color: #fff; padding: 0; }
.credo-newsletter .wpcf7 form.sent .wpcf7-response-output { color: #c8953a; }
.credo-newsletter-note { opacity: .65; }
@media (max-width: 600px) {
	.credo-newsletter .wpcf7 form { flex-direction: column; align-items: stretch; border-radius: 20px; padding: 8px; gap: 8px; }
	.credo-newsletter .wpcf7 input[type="email"] { background-color: rgba(255,255,255,.06); }
	.credo-newsletter .wpcf7 input[type="submit"] { width: 100%; }
}

/* Footer contact icons line up with their titles */
.credo-site-footer .elementor-icon-box-wrapper { align-items: flex-start; }
.credo-site-footer .elementor-icon-box-icon { margin-top: 5px; }

/* ---------- Services hub: bento tiles ---------- */
.e-con.credo-tile { position: relative; overflow: hidden !important; isolation: isolate; box-shadow: 0 10px 30px rgba(25,17,11,.06); transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease; }
.credo-tile:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(25,17,11,.20); }
.credo-tile .elementor-button { position: static; }
.credo-tile .elementor-button::after { content: ""; position: absolute; inset: 0; z-index: 5; }   /* whole tile is clickable */
.credo-tile .elementor-button .elementor-button-icon { transition: transform .3s ease; }
.credo-tile:hover .elementor-button .elementor-button-icon { transform: translateX(6px); }
.credo-tile__text { position: relative; z-index: 2; }
.credo-tile > .credo-tile__img { position: absolute !important; right: 16px; bottom: -10px; width: 31% !important; max-width: 270px; z-index: 1; margin: 0 !important; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.credo-tile > .credo-tile__img img { display: block; width: 100%; height: auto; border-radius: 10px; filter: drop-shadow(0 22px 26px rgba(0,0,0,.38)); transform: rotate(7deg); transition: transform .7s cubic-bezier(.22,1,.36,1); }
.credo-tile > .credo-tile__img--back { right: 21%; bottom: -34px; width: 25% !important; z-index: 0; }
.credo-tile > .credo-tile__img--back img { transform: rotate(-9deg); filter: drop-shadow(0 16px 20px rgba(0,0,0,.35)) brightness(.88); }
.credo-tile:hover > .credo-tile__img { transform: translate(-6px, -14px) scale(1.05); }
.credo-tile:hover > .credo-tile__img img { transform: rotate(3deg); }
.credo-tile:hover > .credo-tile__img--back img { transform: rotate(-14deg); }
@media (max-width: 1024px) {
	.credo-tile > .credo-tile__img { width: 34% !important; }
	.credo-tile > .credo-tile__img--back { width: 26% !important; }
	.credo-tile__text { max-width: 62%; }
}
@media (max-width: 767px) {
	.e-con.credo-tile { min-height: 0 !important; padding-bottom: 120px !important; }
	.credo-tile__text { max-width: 100%; }
	.credo-tile > .credo-tile__img { width: 36% !important; right: 18px; bottom: -14px; }
	.credo-tile > .credo-tile__img--back { width: 28% !important; right: 34%; bottom: -22px; }
}

/* ---------- Services hub: numbered index ---------- */
.credo-index__row { position: relative; transition: background-color .3s ease, padding .3s ease; }
.credo-index__row:hover { background: #faf8f4; }
.credo-index__title .elementor-heading-title { transition: color .25s ease, transform .35s cubic-bezier(.22,1,.36,1); }
.credo-index__row:hover .credo-index__title .elementor-heading-title { color: #695c3a; transform: translateX(8px); }
.credo-index__row .elementor-button { position: static; }
.credo-index__row .elementor-button::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.credo-index__row .elementor-button .elementor-button-icon { transition: transform .3s ease; }
.credo-index__row:hover .elementor-button .elementor-button-icon { transform: translateX(6px); }
.credo-index__thumb { width: 64px !important; flex: none; opacity: 0; transform: translateX(14px) rotate(-6deg) scale(.85); transition: opacity .35s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.credo-index__thumb img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 22px rgba(25,17,11,.28); display: block; }
.credo-index__row:hover .credo-index__thumb { opacity: 1; transform: translateX(0) rotate(-4deg) scale(1); }
@media (max-width: 1024px) { .credo-index__thumb { display: none; } .credo-index__row { padding-left: 8px; padding-right: 8px; } }
@media (hover: none) { .credo-index__row:hover { background: transparent; } }

/* Landscape photos inside service tiles: bigger, fully visible, same tilt + shadow as the portrait covers */
.credo-tile > .credo-tile__img--wide { width: 50% !important; max-width: 400px; right: 20px; bottom: 28px; }
.credo-tile > .credo-tile__img--wide img { border-radius: 14px; transform: rotate(-5deg); filter: drop-shadow(0 22px 26px rgba(0,0,0,.38)); }
.credo-tile:hover > .credo-tile__img--wide { transform: translate(-6px, -12px) scale(1.04); }
.credo-tile:hover > .credo-tile__img--wide img { transform: rotate(-2deg); }
@media (max-width: 1024px) { .credo-tile > .credo-tile__img--wide { width: 44% !important; } }
@media (max-width: 767px) { .credo-tile > .credo-tile__img--wide { width: 58% !important; right: 14px; bottom: 18px; } .e-con.credo-tile { padding-bottom: 150px !important; } }

/* ---------- Case study pages ---------- */
.credo-case__cover img { border-radius: 14px; box-shadow: 0 34px 60px rgba(25,17,11,.32); transform: rotate(3deg); transition: transform .6s cubic-bezier(.22,1,.36,1); }
.credo-case__cover:hover img { transform: rotate(0) scale(1.02); }
.credo-work .elementor-widget-image a { cursor: pointer; }
.e-con.credo-work__info { pointer-events: none; }

/* before / after slider */
.e-con.credo-compare { position: relative; overflow: hidden !important; border-radius: 18px; aspect-ratio: 3 / 4; box-shadow: 0 30px 60px rgba(25,17,11,.22); --pos: 50%; touch-action: pan-y; background: #f6f1e4; }
.credo-compare > .elementor-widget { position: absolute !important; inset: 0; width: 100%; height: 100%; margin: 0 !important; }
.credo-compare img { width: 100%; height: 100%; object-fit: cover; display: block; }
.credo-compare > .credo-compare__after { clip-path: inset(0 0 0 var(--pos)); }
.credo-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; z-index: 5; pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.credo-compare__handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #c8953a; color: #19110b; font: 700 20px/46px sans-serif; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.credo-compare__tag { position: absolute; top: 14px; z-index: 6; padding: 6px 12px; border-radius: 40px; background: rgba(25,17,11,.78); color: #fff; font: 600 11px/1 "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.credo-compare__tag--l { left: 14px; } .credo-compare__tag--r { right: 14px; }
.credo-compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 7; }
.credo-compare input[type="range"]:focus-visible ~ .credo-compare__handle::after { outline: 3px solid #fff; }

/* process stages */
.e-con.credo-stage { border: 1px solid #e7e1d3; border-radius: 16px; padding: 14px; background: #fff; transition: transform .35s ease, box-shadow .35s ease; }
.credo-stage:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(25,17,11,.12); }
.credo-stage__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; display: block; }
.credo-gallery--wide .gallery-icon img { aspect-ratio: 16 / 10 !important; }
.credo-gallery--wide .gallery { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 1024px) { .credo-gallery--wide .gallery { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 767px) { .credo-gallery--wide .gallery { grid-template-columns: 1fr !important; } }

/* ---------- AI chat widget (ai-chat-core) polish - overrides only, plugin files stay untouched ---------- */
#aichat-widget, #aichat-panel, #aichat-teaser { font-family: "Inter", sans-serif; }
#aichat-widget button, #aichat-panel button { text-transform: none; letter-spacing: 0; }
#aichat-bubble { width: 62px; height: 62px; background: #695c3a; box-shadow: 0 10px 28px rgba(25,17,11,.35); transition: transform .25s ease, box-shadow .25s ease; }
#aichat-bubble:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 34px rgba(25,17,11,.4); }
#aichat-bubble img { background: #fff; padding: 11px; object-fit: contain; border: 3px solid #c8953a; box-sizing: border-box; }
#aichat-header { background: linear-gradient(135deg, #695c3a, #4b4129); padding: 16px 18px; }
#aichat-header-identity { font-family: "Poppins", sans-serif; font-size: 16px; gap: 10px; }
#aichat-header-avatar { width: 36px !important; height: 36px !important; object-fit: contain !important; padding: 6px; box-sizing: border-box; background: #fff; border: 2px solid #c8953a; }
#aichat-panel { border-radius: 20px; box-shadow: 0 24px 60px rgba(25,17,11,.32); }
#aichat-teaser { border-radius: 14px; box-shadow: 0 14px 34px rgba(25,17,11,.25); font-size: 14px; padding: 14px 30px 14px 16px; }
.aichat-msg { border-radius: 14px; font-size: 15px; line-height: 1.55; }
/* starter-question chips: pill outline instead of the theme's solid buttons */
#aichat-panel button.aichat-suggestion {
	background: #fff !important; color: #695c3a !important; border: 1.5px solid #d9d2c1 !important; border-radius: 40px !important; padding: 9px 15px !important;
	font: 500 13.5px/1.25 "Inter", sans-serif !important; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
#aichat-panel button.aichat-suggestion:hover { background: #695c3a !important; color: #fff !important; border-color: #695c3a !important; }
#aichat-form button[type="submit"], #aichat-form button { background: #695c3a; border-radius: 40px; font: 600 13px/1 "Poppins", sans-serif; }
#aichat-form input[type="text"], #aichat-form input:not([type]), #aichat-form textarea { font-family: "Inter", sans-serif; font-size: 15px; }
@media (max-width: 480px) { #aichat-panel { right: 12px; left: 12px; width: auto; bottom: 86px; border-radius: 18px; } #aichat-widget { right: 14px; bottom: 14px; } }

/* ---------- Sticky mobile CTA bar ---------- */
.credo-mobile-cta { display: none; }
@media (max-width: 767px) {
	.credo-mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; box-shadow: 0 -8px 24px rgba(25,17,11,.25); padding-bottom: env(safe-area-inset-bottom); background: #19110b; }
	.credo-mobile-cta .elementor-button { font-size: 13px; letter-spacing: .02em; text-transform: none; }
	.credo-mobile-cta .elementor-button .elementor-button-icon { font-size: 15px; }
	body { padding-bottom: 66px; }
	#aichat-bubble, #aichat-teaser { display: none !important; }   /* the sticky bar's Chat button opens the panel */
	#aichat-panel { bottom: 76px; max-height: calc(100vh - 96px); }
}

/* Open mobile menu: hide the sticky CTA bar so the last menu items are never covered */
html.credo-menu-open .credo-mobile-cta { display: none; }
@media (max-width: 1024px) { .credo-menu__panel { padding-bottom: 36px; } }

/* Service pages: every intro image sits in the same-shaped panel, scaled to fit */
.e-con.credo-intro-media { aspect-ratio: auto; min-height: 440px; overflow: hidden; padding: 0 !important; align-self: stretch; }
.credo-intro-media > .elementor-widget-image { width: 100%; height: 100%; margin: 0 !important; display: flex; align-items: center; justify-content: center; }
.credo-intro-media > .elementor-widget-image .elementor-widget-container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.credo-intro-media img { width: 78% !important; height: auto !important; max-width: 84% !important; max-height: 80% !important; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(25,17,11,.16)); }
@media (max-width: 1024px) { .e-con.credo-intro-media { min-height: 0; aspect-ratio: 4 / 3; } }

/* =====================================================================
   Guides (blog): hub grid, cards, article layout
   ===================================================================== */
.credo-ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.credo-gcard { background: #fff; border: 1px solid #e7e1d3; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(25,17,11,.06); transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease; }
.credo-gcard:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(25,17,11,.12); }
.credo-gcard__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f3e7cf; }
.credo-gcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.credo-gcard:hover .credo-gcard__media img { transform: scale(1.05); }
.credo-gcard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.credo-gcard__cat { font: 600 12px/1 "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #9c6f1e; text-decoration: none; }
.credo-gcard__title { margin: 0; font: 600 21px/1.3 "Poppins", sans-serif; color: #19110b; }
.credo-gcard__title a { color: inherit; text-decoration: none; }
.credo-gcard__title a:hover { color: #695c3a; }
.credo-gcard__ex { margin: 0; font: 400 15.5px/1.65 "Inter", sans-serif; color: #666; }
.credo-gcard__meta { margin: auto 0 0; padding-top: 6px; font: 500 13px/1 "Inter", sans-serif; color: #8a8575; }
.credo-gchips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.credo-gchip { padding: 10px 20px; border: 1.5px solid #d9d2c1; border-radius: 40px; font: 600 13px/1 "Poppins", sans-serif; color: #695c3a; text-decoration: none; background: #fff; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.credo-gchip:hover, .credo-gchip.is-active { background: #695c3a; border-color: #695c3a; color: #fff; }
.credo-gempty { text-align: center; color: #666; padding: 40px 0; }
@media (max-width: 1024px) { .credo-ggrid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 640px) { .credo-ggrid { grid-template-columns: 1fr; } .credo-gcard__title { font-size: 19px; } }

.credo-guide { background: #fff; }
.credo-guide__head { max-width: 820px; margin: 0 auto; padding: 56px 20px 12px; }
.credo-guide__head--center { text-align: center; }
.credo-crumbs { font: 500 14px/1.4 "Inter", sans-serif; color: #666; margin-bottom: 18px; }
.credo-crumbs a { color: #695c3a; text-decoration: none; }
.credo-crumbs a:hover { text-decoration: underline; }
.credo-guide__cat { margin: 0 0 12px; font: 600 13px/1 "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #9c6f1e; }
.credo-guide__title { margin: 0 0 18px; font: 700 clamp(30px, 4.4vw, 48px)/1.15 "Poppins", sans-serif; color: #19110b; }
.credo-guide__meta { margin: 0; font: 500 14.5px/1.5 "Inter", sans-serif; color: #666; }
.credo-guide__lede { font: 400 18px/1.7 "Inter", sans-serif; color: #666; margin: 0 0 20px; }
.credo-guide__hero { max-width: 1080px; margin: 28px auto 0; padding: 0 20px; }
.credo-guide__hero img { width: 100%; height: auto; border-radius: 20px; display: block; box-shadow: 0 24px 50px rgba(25,17,11,.16); }
.credo-guide__body { max-width: 760px; margin: 0 auto; padding: 34px 20px 10px; font: 400 18px/1.8 "Inter", sans-serif; color: #3d372b; }
.credo-guide__body p { margin: 0 0 1.25em; }
.credo-guide__body .credo-lede { font-size: 20px; line-height: 1.7; color: #19110b; }
.credo-guide__body h2 { margin: 2em 0 .6em; font: 700 clamp(24px, 3vw, 30px)/1.25 "Poppins", sans-serif; color: #19110b; scroll-margin-top: 100px; }
.credo-guide__body h3 { margin: 1.6em 0 .5em; font: 600 21px/1.3 "Poppins", sans-serif; color: #19110b; }
.credo-guide__body ul, .credo-guide__body ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.credo-guide__body li { margin: 0 0 .55em; padding-left: .2em; }
.credo-guide__body a { color: #695c3a; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.credo-guide__body a:hover { color: #9c6f1e; }
.credo-guide__body strong { color: #19110b; }
.credo-toc { background: #faf8f4; border: 1px solid #e7e1d3; border-radius: 14px; padding: 20px 24px; margin: 0 0 2em; font-size: 16px; }
.credo-toc strong { display: block; margin-bottom: 8px; font: 600 14px/1 "Poppins", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #695c3a; }
.credo-toc ol { margin: 0; padding-left: 1.2em; }
.credo-toc li { margin: 0 0 .35em; }
.credo-toc a { text-decoration: none; }
.credo-toc a:hover { text-decoration: underline; }
.credo-guide__body table { width: 100%; border-collapse: collapse; margin: 1.6em 0 2em; font-size: 15.5px; line-height: 1.55; display: block; overflow-x: auto; }
.credo-guide__body th, .credo-guide__body td { border: 1px solid #e2dac6; padding: 12px 14px; text-align: left; vertical-align: top; }
.credo-guide__body thead th { background: #695c3a; color: #fff; font: 600 14px/1.3 "Poppins", sans-serif; border-color: #695c3a; }
.credo-guide__body tbody tr:nth-child(even) td { background: #faf8f4; }
.credo-figure { margin: 2em -40px; }
.credo-figure img { width: 100%; height: auto; border-radius: 16px; display: block; }
.credo-figure figcaption { margin-top: 10px; text-align: center; font: 400 14px/1.5 "Inter", sans-serif; color: #8a8575; }
@media (max-width: 860px) { .credo-figure { margin: 1.6em 0; } .credo-guide__body { font-size: 17px; } }
.credo-guide__author { max-width: 760px; margin: 22px auto 40px; padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 3px solid #c8953a; background: #faf8f4; border-radius: 0 12px 12px 0; font: 400 15px/1.6 "Inter", sans-serif; color: #666; }
.credo-guide__author strong { font: 600 16px/1.3 "Poppins", sans-serif; color: #19110b; }
.credo-guide__wide { max-width: 1400px; margin: 0 auto; padding: 10px 20px 70px; }
.credo-guide__related { max-width: 1400px; margin: 0 auto; padding: 20px 20px 80px; }
.credo-guide__related h2 { font: 700 clamp(26px, 3vw, 34px)/1.2 "Poppins", sans-serif; color: #19110b; margin: 0 0 24px; text-align: center; }
.credo-guide--archive .credo-guide__head { padding-bottom: 28px; }
