/* creative.artworks: site-level additions on top of Ohio. Brand colour stays in Ohio settings (var(--clb-color-primary) etc.). */

/* Header: the longer menu labels stay on one line, and a logo squeezed by a narrow header keeps its shape. */
#masthead .nav .menu-item-depth-0 > a > span { white-space: nowrap; }
#masthead .branding img { object-fit: contain; }
@media (max-width: 1180px) { #masthead .nav .menu-item-depth-0 > a { padding-left: 8px; padding-right: 8px; } }
/* The menu sits on the right, next to "Let's talk", leaving room for the full-size logo on the left (Ohio centres it). */
body:not(.is-mobile-menu) #masthead .right-part > .nav { position: static; left: auto; right: auto; transform: none; margin-right: 24px; }
/* Tablets and small laptops: the menu no longer fits beside the logo, so the hamburger carries it on its own. */
@media (max-width: 1200px) { body:not(.is-mobile-menu) #masthead .nav { display: none; } }
/* Hamburger menu: its column is set to 30% of the screen, too narrow for "Don't Hire Us!" on tablets, so it grows to fit the longest label. */
.hamburger-nav .hamburger-nav-holder > .menu { min-width: max-content; }
/* That leaves the second level less room on tablets, so its labels are a size smaller and stay on one line. */
@media (max-width: 1024px) { .hamburger-nav .sub-menu-link > span { font-size: .75em; white-space: nowrap; } }
/* Ohio hides the "Follow Us" line on phones and small laptops; in between it runs into the colour switcher, so it goes there too. The links stay in the hamburger menu and footer. */
@media (min-width: 769px) and (max-width: 991px) { .elements-bar .social-bar { display: none; } }
/* Pages without a page heading (the Services pages) would show their breadcrumb behind the see-through header, so it starts below it. */
body.with-breadcrumbs:not(.with-headline) .site-content > .page-container > .breadcrumb-holder { padding-top: var(--clb-header-height); }
/* Footer wordmark: Ohio's size is made for a shorter word, so "evolving.the.web" ran a few percent past its space and pushed tablet pages sideways. */
.site-footer-text p { --clb-font-size-footer-background: 13.3cqi; }
/* Ohio's project and post grids reach their gutter past the screen edge on full-width sections; that empty margin is clipped so pages never scroll sideways. Clip keeps sticky elements working. */
.site-content { overflow-x: clip; }

/* Portfolio and Services menus: their sections sit side by side in a pill under the menu item. Desktop menu only. */
body:not(.is-mobile-menu) #masthead .nav .ca-pill-menu > .sub-menu { flex-direction: row; gap: 4px; width: max-content; padding: 6px; left: 50%; translate: -50% 0; border-radius: 999px; }
body:not(.is-mobile-menu) #masthead .nav .ca-pill-menu > .sub-menu > li > a { padding: 10px 20px; border-radius: 999px; white-space: nowrap; transition: background-color .2s, color .2s; }
body:not(.is-mobile-menu) #masthead .nav .ca-pill-menu > .sub-menu > li > a:is(:hover, :focus-visible) { background-color: rgba(127, 127, 127, .16); }
body:not(.is-mobile-menu) #masthead .nav .ca-pill-menu > .sub-menu > li > a:focus-visible { outline: 2px solid var(--clb-color-primary); outline-offset: 2px; }
/* Ohio opens its dropdowns on hover only, which would leave these sections out of reach from the keyboard. */
body:not(.is-mobile-menu) #masthead .nav .ca-pill-menu:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
body:not(.is-mobile-menu) #masthead .nav .ca-pill-menu:focus-within > .sub-menu > li { opacity: 1; transform: none; }
/* The section being viewed is filled. Portfolio's order is Websites, Projects, Mobile Apps. */
body:not(.is-mobile-menu) #masthead .nav .ca-pill-menu > .sub-menu > li.current-menu-item > a,
:is(.post-type-archive-ca_website, .single-ca_website) #masthead .nav .ca-pill-portfolio > .sub-menu > li:nth-child(1) > a,
:is(.post-type-archive-ca_project, .single-ca_project) #masthead .nav .ca-pill-portfolio > .sub-menu > li:nth-child(2) > a,
:is(.post-type-archive-ca_mobile_app, .single-ca_mobile_app) #masthead .nav .ca-pill-portfolio > .sub-menu > li:nth-child(3) > a { background-color: var(--clb-color-primary); color: #fff; }
:is(.post-type-archive-ca_website, .single-ca_website, .post-type-archive-ca_project, .single-ca_project, .post-type-archive-ca_mobile_app, .single-ca_mobile_app) #masthead .nav .ca-pill-portfolio > a { color: var(--clb-color-primary); }

/* Contact: office card floating over the map (contact-us-ver1). Static under the map on tablet/mobile. */
.ca-map-wrap { position: relative; }
.ca-map-wrap .ca-map-card {
	position: absolute; z-index: 3; right: 8%; top: calc(50% + var(--clb-header-height, 100px) / 2); transform: translateY(-50%); /* centred in the part of the map below the menu bar */
	width: 380px; max-width: calc(100% - 40px); padding: 32px;
	background: var(--clb-color-white, #fff); border-radius: calc(var(--clb-border-radius, 8px) * 2);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
}
.dark-scheme .ca-map-wrap .ca-map-card { background: #1a191d; }
/* Framed like the About cards: thin border, and on hover a red bar draws across the top, the border warms and the card lifts. */
.ca-map-wrap .ca-map-card { border: 1px solid color-mix(in srgb, currentColor 14%, transparent); transition: border-color .35s, translate .35s cubic-bezier(.2, .7, .2, 1); }
.ca-map-wrap .ca-map-card::after { content: ""; position: absolute; left: 32px; right: 32px; top: -1px; height: 2px; background: var(--clb-color-primary, #d90a2c); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.ca-map-wrap .ca-map-card:hover { border-color: color-mix(in srgb, var(--clb-color-primary, #d90a2c) 55%, transparent); translate: 0 -4px; }
.ca-map-wrap .ca-map-card:hover::after { transform: scaleX(1); }
@media (max-width: 1024px) {
	.ca-map-wrap .ca-map-card { position: relative; transform: none; width: auto; max-width: none; margin: -60px 20px 0; }
}

/* Elementor forms (.ca-eform): the outlined look of Ohio's form fields, in dark and light mode. Elementor writes its
   field colours with an ID-level selector, so the colours here need the last word. */
.ca-eform .elementor-form-fields-wrapper { margin: 0 -12px; row-gap: 16px; }
.ca-eform .elementor-field-group { margin-bottom: 0 !important; padding: 0 12px !important; }
.ca-eform .elementor-field-group :is(input.elementor-field:not([type="checkbox"]), select, textarea.elementor-field) { height: 48px; min-height: 48px; padding: 0 16px; border: 2px solid color-mix(in srgb, currentColor 24%, transparent) !important; border-radius: var(--clb-border-radius, 8px) !important; background: transparent !important; color: inherit !important; font-size: 1.05em; line-height: 1.4; box-shadow: none; transition: border-color .25s; }
.ca-eform .elementor-field-group.elementor-field-type-textarea textarea.elementor-field { height: auto; min-height: 180px; padding: 12px 16px; }
/* Our own arrow: Elementor hides its arrow on these lists. */
.ca-eform .elementor-field-group.elementor-field-type-select .elementor-select-wrapper select { padding-right: 44px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.8'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 18px center !important; }
.ca-eform .elementor-select-wrapper { border: 0 !important; background: none !important; }
.ca-eform .elementor-select-wrapper::before { color: inherit; opacity: .6; }
.ca-eform .elementor-select-wrapper select option { background: var(--clb-color-black, #111013); color: #fff; }
.ca-eform .elementor-field-group :is(input.elementor-field:not([type="checkbox"]), select, textarea.elementor-field):focus { border-color: var(--clb-color-primary) !important; outline: 0; }
.ca-eform .elementor-field::placeholder { color: inherit; opacity: .5; }
.ca-eform .elementor-field-type-acceptance { font-size: 13px; line-height: 1.5; opacity: .8; }
.ca-eform .elementor-field-type-acceptance .elementor-field-subgroup { display: flex; align-items: flex-start; }
.ca-eform .elementor-field-type-acceptance input { flex: none; margin: 3px 10px 0 0; accent-color: var(--clb-color-primary); }
.ca-eform .elementor-field-type-acceptance a { text-decoration: underline; }
.ca-eform .elementor-field-type-submit { justify-content: flex-start; }
.ca-eform .elementor-field-type-submit .elementor-button { width: auto !important; flex: 0 0 auto !important; height: 48px; padding: 0 28px; border-radius: var(--clb-border-radius, 8px); background: var(--clb-color-primary) !important; color: #fff !important; font-size: 15px; font-weight: 600; transition: background .25s; }
.ca-eform .elementor-field-type-submit .elementor-button:hover { filter: brightness(1.12); }
.ca-eform .elementor-message { margin-top: 14px; font-size: 15px; }
.ca-eform .elementor-message-success { color: #2fbf71; }
@media (max-width: 767px) { .ca-eform .elementor-field-group { width: 100% !important; max-width: 100% !important; flex-basis: 100% !important; } }

/* Post sidebar CTA banner */
.ca-sidebar-cta { padding: 28px; border-radius: calc(var(--clb-border-radius, 8px) * 2); background: rgba(127, 127, 127, .08); }
.ca-sidebar-cta__kicker { text-transform: uppercase; font-size: var(--clb-font-size-caption, .8em); letter-spacing: .05em; opacity: .7; margin-bottom: 8px; }

/* Placeholder marker for content that must be replaced before launch: visible only to logged-in editors */
body.logged-in .ca-placeholder { outline: 2px dashed rgba(217, 10, 44, .5); outline-offset: 4px; }

/* Pagination under the blog and portfolio lists: room from the last entry above and from the footer below. */
:is(.pagination-standard, .ca-pagination):has(.pagination) { margin-top: clamp(40px, 5vh, 56px); padding-bottom: clamp(64px, 9vh, 96px); }
/* Ohio pulls pagination under a portfolio grid up by the grid gutter; there it gets the same room above as the blog, and the section around it already has room below. */
.ca-archive .vc_row.portfolio-grid + .ca-pagination { margin-top: clamp(40px, 5vh, 56px); padding-top: 0; padding-bottom: 0; }

/* Closing call to action above the footer (inc/ca-cta.php): the brand red, white text, the button turned white to stay the strongest element. */
.ca-cta { position: relative; overflow: hidden; background: var(--clb-color-primary, #d90a2c); color: #fff; }
.ca-cta::before { content: ""; position: absolute; top: -40%; right: -10%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent); pointer-events: none; }
.ca-cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: clamp(64px, 10vh, 110px); padding-bottom: clamp(64px, 10vh, 110px); }
.ca-cta-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.ca-cta-title { max-width: 820px; margin: 0; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.15; color: #fff; }
.ca-cta-text { margin: 14px 0 0; color: rgba(255, 255, 255, .85); }
.ca-cta .ca-cta-button { flex: none; display: inline-flex; align-items: center; gap: 10px; background: #fff; border-color: #fff; color: #111013; transition: background .25s, border-color .25s, color .25s, transform .25s; }
.ca-cta .ca-cta-button:is(:hover, :focus-visible) { background: #111013; border-color: #111013; color: #fff; transform: translateY(-2px); }
.ca-cta .ca-cta-button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 800px) { .ca-cta-inner { flex-direction: column; align-items: flex-start; } }

/* Footer copyright line: the legal pages and cookie settings, after the copyright. */
.site-footer-copyright .ca-legal-links { display: inline-block; margin-left: 18px; white-space: nowrap; }
.site-footer-copyright .ca-legal-links a { opacity: .75; transition: opacity .25s; }
.site-footer-copyright .ca-legal-links a:is(:hover, :focus-visible) { opacity: 1; }
@media (max-width: 767px) { .site-footer-copyright .ca-legal-links { display: block; margin: 8px 0 0; white-space: normal; } }

/* Home slider arrows: they sit on the project images, so they get their own dark backing and a red outline like the About
   cards. On hover the outline turns solid and Ohio's red fill grows in; the arrow nudges the way it points. */
.portfolio-onepage-slider .clb-slider-nav-btn { gap: 10px; }
.portfolio-onepage-slider .clb-slider-nav-btn .icon-button { width: 52px; height: 52px; border: 1px solid color-mix(in srgb, var(--clb-color-primary, #d90a2c) 60%, transparent); background-color: rgba(17, 16, 19, .55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); cursor: pointer; transition: border-color .35s, box-shadow .35s, background-color .35s; }
.portfolio-onepage-slider .clb-slider-nav-btn .icon-button .icon { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.portfolio-onepage-slider .clb-slider-nav-btn .icon-button:is(:hover, :focus-visible) { border-color: var(--clb-color-primary, #d90a2c); box-shadow: 0 14px 34px color-mix(in srgb, var(--clb-color-primary, #d90a2c) 35%, transparent); }
.portfolio-onepage-slider .clb-slider-nav-btn .prev-btn:is(:hover, :focus-visible) .icon { transform: translateX(-3px); }
.portfolio-onepage-slider .clb-slider-nav-btn .next-btn:is(:hover, :focus-visible) .icon { transform: translateX(3px); }
.portfolio-onepage-slider .clb-slider-nav-btn .icon-button::before { z-index: 0; border-radius: inherit; }
.portfolio-onepage-slider .clb-slider-nav-btn .icon-button .icon { position: relative; z-index: 1; }
.portfolio-onepage-slider .clb-slider-nav-btn .icon-button:is(:hover, :focus-visible)::before { transform: scale(1); }
.portfolio-onepage-slider .clb-slider-nav-btn .icon-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .portfolio-onepage-slider .clb-slider-nav-btn .icon-button, .portfolio-onepage-slider .clb-slider-nav-btn .icon-button .icon { transition: none; } }

/* Home showcase titles are H2 for the outline (parts/portfolio_grid/layout_type5.php); same type as the theme gives the H3 version, at every width. */
.portfolio-item.-with-slider .project-content h2.headline { font-size: clamp(var(--clb-h3-font-size-min), var(--clb-h3-clamp-size), var(--clb-h3-font-size)); letter-spacing: var(--clb-h3-letter-spacing); line-height: var(--clb-h3-line-height); }
@media screen and (max-width: 768px) { .portfolio-item.-with-slider .project-content h2.headline { font-size: var(--clb-h1-font-size-min); letter-spacing: var(--clb-h1-letter-spacing); line-height: var(--clb-h1-line-height); } }
/* The showcase widget sizes these titles at 2.5vw from tablet up, which is 19px on a tablet and 32px on a laptop.
   Keep the scaling, but never below the phone size (2.65rem). One class more than Elementor's own rule. */
@media (min-width: 768px) { .elementor-20305 .elementor-element.elementor-element-35a1c1e .portfolio-item.-layout5 .headline { font-size: max(2.65rem, 2.5vw); } }
/* Contact boxes are H2 for the outline; they keep the H4 look they were designed with (same theme variables). */
.elementor-widget-ohio_icon_box h2.icon-box-heading { font-size: clamp(var(--clb-h4-font-size-min), var(--clb-h4-clamp-size), var(--clb-h4-font-size)); letter-spacing: var(--clb-h4-letter-spacing); line-height: var(--clb-h4-line-height); }
/* Author box name on posts: a styled line instead of an H6 (child single.php); same 1.1em as the theme gives the H6. */
.widget_ohio_widget_about_author .content .ca-author-name { font-size: 1.1em; }
/* Logos now carry their real width/height (parts/elements/menu_logo.php) so space is reserved; the theme sizes them by height. */
.branding img[width] { width: auto; }
/* Home showcase, before the slider script starts: the five slides used to stack (4,500px) and then collapse to one
   screen, pushing everything below up (layout shift ~1.0). Give it the slider's final shape from the first paint:
   one screen tall, slides layered, the first on top. The script then changes nothing visible. */
.portfolio-onepage-slider.grid_5:not(.clb-smooth-slider) { position: relative; height: 100vh; }
.portfolio-onepage-slider.grid_5:not(.clb-smooth-slider) > .portfolio-item { position: absolute; top: 0; left: 0; width: 100%; z-index: 1; }
.portfolio-onepage-slider.grid_5:not(.clb-smooth-slider) > .portfolio-item:first-child { z-index: 3; }

/* Post listings (blog, categories, tags, search): the "Filter by" bar replaces Ohio's results count and filter drop-downs. */
:is(.blog, .archive, .search) .ordering-filters-holder { display: none; }
.ca-blog-filter { margin: 48px 0 56px; }
.ca-blog-filter ul { justify-content: center; row-gap: 10px; }
@media screen and (max-width: 768px) {
	.ca-blog-filter { margin: 32px 0 36px; }
}
/* Cards in a row share one height, as in Ohio's metro portfolio. At three columns (Ohio's lg, 1200px up) a wide card
   spans two columns and one 32px gutter, so its square-making padding becomes half its width less half a gutter.
   At two columns a wide card would leave half a row empty, so there every card is single. Single cards show the series
   covers' right side, where each illustration sits; older post images stay centred. */
@media screen and (min-width: 1200px) {
	:is(.blog, .archive, .search) .archive-holder > .grid-item.vc_col-lg-8 .blog-item.-metro .image-holder { padding-bottom: calc(50% - 16px); }
}
@media screen and (min-width: 769px) and (max-width: 1199px) {
	:is(.blog, .archive, .search) .archive-holder > .grid-item.vc_col-md-12 { width: 50%; }
}
.blog-item.card .image-holder img:is([src*="/looking-back-"], [src*="/month-2026-"], [src*="/designing-with-ai-"]) { object-position: right center; }
@media screen and (min-width: 1200px) {
	:is(.blog, .archive, .search) .archive-holder > .grid-item.vc_col-lg-8 .blog-item.-metro .image-holder img { object-position: center; }
}
/* Blog cards everywhere (archive, "From the blog" on the services pages, related posts) are framed like the About and
   services cards: a faint 1px brand-red border (10%) with the images' 8px radius, the image flush at the top and the
   text inset. On hover the frame turns red, the card lifts 4px, a red line draws across the top and the title turns
   red, as on those cards. In the archive, cards in a row stretch to the tallest so the frames line up. */
.blog-item.card.-layout1 { --ca-red: var(--clb-color-primary, #d90a2c); --ca-ease: cubic-bezier(.2, .7, .2, 1); position: relative; display: flex; flex-direction: column; width: 100%; border: 1px solid rgba(217, 10, 44, .1); border-radius: 8px; overflow: hidden; transition: border-color .35s, translate .35s var(--ca-ease); }
.blog-item.card.-layout1::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: var(--ca-red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ca-ease); pointer-events: none; }
.blog-item.card.-layout1:hover { border-color: color-mix(in srgb, var(--ca-red) 55%, transparent); translate: 0 -4px; }
.blog-item.card.-layout1:hover::after { transform: scaleX(1); }
.blog-item.card.-layout1:hover .card-details .title, .blog-item.card.-layout1:hover .card-details .title a { color: var(--ca-red); }
.blog-item.card.-layout1 .image-holder { border-radius: 0; }
.blog-item.card.-layout1 .card-details { flex: 1; padding: 20px 22px 24px; }
:is(.blog, .archive, .search) .archive-holder.blog-posts-classic { display: flex; flex-wrap: wrap; }
:is(.blog, .archive, .search) .archive-holder > .grid-item { display: flex; }
@media (prefers-reduced-motion: reduce) {
	.blog-item.card.-layout1, .blog-item.card.-layout1::after { transition: none; }
	.blog-item.card.-layout1:hover { translate: none; }
}
/* Card titles always keep room for three lines (in their own line height, which follows the fluid type size), so the
   tags below start at the same height in every card of a row, wherever the cards appear. */
.blog-item.card.-layout1 .card-details .title { min-height: 3lh; }
/* A listed page or post without a featured image (a search can return the service pages) gets a panel in the covers'
   style where its image would be, so it keeps the card shape and the row stays even. */
.blog-item.card.-layout1.-no-media .image-holder { position: relative; padding-bottom: 100%; background: radial-gradient(circle at 75% 25%, rgba(217, 10, 44, .32), rgba(217, 10, 44, 0) 60%), #111013; }
.blog-item.card.-layout1.-no-media .image-holder::after { content: "creative.artworks"; position: absolute; right: 22px; bottom: 18px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .55); }
