/* ==========================================================================
   Heybridge Creative – theme styles
   Colours and type come from Elementor's Global Colours / Global Fonts
   (Site Settings), so change them there and this file follows.
   ========================================================================== */

:root {
	--hc-ink: var(--e-global-color-primary, #0E0E0D);
	--hc-paper: var(--e-global-color-secondary, #EEEBE4);
	--hc-grey: var(--e-global-color-text, #807C75);
	--hc-lime: var(--e-global-color-accent, #D4FF3A);
	--hc-line: var(--e-global-color-hcline, #D6D1C8);
	--hc-dline: var(--e-global-color-hcdline, #302F2C);
	--hc-dgrey: var(--e-global-color-hcdgrey, #96928B);
	--hc-serif: "Lora", Georgia, serif;
	--hc-ease: cubic-bezier(.2, .7, .2, 1);
}

body {
	background: var(--hc-paper);
	color: var(--hc-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection { background: var(--hc-lime); color: var(--hc-ink); }

/* Italic serif accent: wrap any words in a heading with <em> ------------- */
.elementor-heading-title em,
.hc-serif em {
	font-family: var(--hc-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
}
.hc-em-accent em { color: var(--hc-lime); }
.hc-muted { color: var(--hc-dgrey); }
.hc-count {
	font-family: var(--hc-serif);
	font-style: italic;
	font-weight: 400;
	font-size: 0.28em;
	letter-spacing: 0;
	color: var(--hc-grey);
	vertical-align: top;
	margin-left: 0.2em;
}

/* Header ------------------------------------------------------------------ */
.hc-header {
	position: fixed !important;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 999;
	transition: background-color .35s var(--hc-ease), padding .35s var(--hc-ease), backdrop-filter .35s;
}
body:not(.home) .hc-header,
.hc-header.is-scrolled {
	background-color: rgba(14, 14, 13, .9) !important;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.hc-header.is-scrolled { padding-top: 14px !important; padding-bottom: 14px !important; }
.hc-logo .elementor-heading-title a { color: inherit; }

/* Text links with an underline ------------------------------------------- */
.hc-link .elementor-heading-title a,
.hc-link a {
	color: inherit;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
	padding-bottom: 6px;
	transition: background-size .4s var(--hc-ease);
}
.hc-link .elementor-heading-title a:hover,
.hc-link a:hover { background-size: 0 2px; background-position: 100% 100%; }
.hc-link-lime a { background-image: linear-gradient(var(--hc-lime), var(--hc-lime)); background-size: 100% 3px; }

/* Hero -------------------------------------------------------------------- */
.hc-hero { min-height: 100svh; }
.hc-hero-rule { border-top: 1px solid rgba(255, 255, 255, .22); }

/* Client marquee ---------------------------------------------------------- */
.hc-marquee { overflow: hidden; white-space: nowrap; }
.hc-marquee__track {
	display: inline-flex;
	align-items: center;
	gap: 0;
	animation: hc-marquee 38s linear infinite;
	will-change: transform;
}
.hc-marquee__track span {
	font-family: "Inter Tight", sans-serif;
	font-weight: 700;
	font-size: clamp(22px, 2.7vw, 38px);
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--hc-ink);
}
.hc-marquee__track i {
	font-style: normal;
	font-size: clamp(18px, 2vw, 28px);
	margin: 0 1.1em;
	color: var(--hc-ink);
}
.hc-marquee:hover .hc-marquee__track { animation-play-state: paused; }
@keyframes hc-marquee { to { transform: translateX(-50%); } }

/* Work tiles -------------------------------------------------------------- */
.hc-work-tile .elementor-widget-image,
.hc-work-tile .elementor-widget-image a { display: block; overflow: hidden; border-radius: 6px; }
.hc-work-tile .elementor-widget-image img {
	display: block;
	transition: transform 1s var(--hc-ease);
}
.hc-work-tile:hover .elementor-widget-image img { transform: scale(1.04); }
.hc-work-tile .elementor-heading-title a { color: inherit; }
.hc-work-tile .elementor-heading-title em { color: var(--hc-grey); font-size: .95em; }

.hc-tag {
	display: inline-block;
	border: 1px solid currentColor;
	border-radius: 999px;
	padding: 6px 15px;
	margin: 0 6px 6px 0;
	font-family: "Inter", sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
}
.hc-tags p { margin: 0; }

/* Rotating badge ---------------------------------------------------------- */
.hc-badge { position: relative; width: 190px; height: 190px; display: block; color: var(--hc-ink); }
.hc-badge svg.hc-badge__ring { width: 100%; height: 100%; animation: hc-spin 18s linear infinite; }
.hc-badge__ring text { font: 600 11.5px "Inter", sans-serif; letter-spacing: 2.4px; text-transform: uppercase; fill: currentColor; }
.hc-badge__core {
	position: absolute; inset: 50% auto auto 50%;
	width: 72px; height: 72px; margin: -36px 0 0 -36px;
	border-radius: 50%; background: var(--hc-lime);
	display: grid; place-items: center;
	font: 600 26px/1 "Inter", sans-serif; color: var(--hc-ink);
	transition: transform .4s var(--hc-ease);
}
.hc-badge:hover .hc-badge__core { transform: scale(1.12) rotate(45deg); }
@keyframes hc-spin { to { transform: rotate(360deg); } }

/* Service rows ------------------------------------------------------------ */
.hc-service-row {
	position: relative;
	border-top: 1px solid var(--hc-dline);
	transition: background-color .3s var(--hc-ease);
	text-decoration: none !important;
}
.hc-service-list > .hc-service-row:last-child,
.hc-service-list > .e-con-inner > .hc-service-row:last-child { border-bottom: 1px solid var(--hc-dline); }
.hc-service-row:hover,
.hc-service-row:focus-visible { background-color: var(--hc-lime); }
.hc-service-row:hover .elementor-heading-title,
.hc-service-row:hover .elementor-widget-text-editor,
.hc-service-row:focus-visible .elementor-heading-title { color: var(--hc-ink) !important; }
.hc-service-row .hc-arrow .elementor-heading-title { transition: transform .35s var(--hc-ease); }
.hc-service-row:hover .hc-arrow .elementor-heading-title { transform: rotate(45deg); }
.hc-service-row__preview {
	position: absolute !important;
	left: 0; top: 0;
	width: 250px !important;
	pointer-events: none;
	opacity: 0;
	z-index: 5;
	transform: translate(-50%, -50%) rotate(-6deg) scale(.9);
	transition: opacity .25s, transform .35s var(--hc-ease);
}
.hc-service-row__preview img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.hc-service-row:hover .hc-service-row__preview { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
@media (hover: none), (max-width: 1024px) {
	.hc-service-row__preview { display: none !important; }
}

/* Light variant of the service rows (on paper backgrounds) */
.hc-service-list--light .hc-service-row { border-color: var(--hc-line); }

/* Posts (journal / work grids) ------------------------------------------- */
.hc-posts .elementor-post {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	overflow: visible !important;
}
.hc-posts .elementor-post__thumbnail__link { border-radius: 6px; overflow: hidden; display: block; margin-bottom: 18px !important; }
.hc-posts .elementor-post__thumbnail img { transition: transform 1s var(--hc-ease); }
.hc-posts .elementor-post:hover .elementor-post__thumbnail img { transform: scale(1.04); }
.hc-posts .elementor-post__card .elementor-post__text,
.hc-posts .elementor-post__text { padding: 0 !important; margin-top: 0 !important; }
.hc-posts .elementor-post__title,
.hc-posts .elementor-post__title a {
	font-family: "Inter Tight", sans-serif !important;
	font-weight: 600 !important;
	font-size: 24px !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em;
	color: var(--hc-ink) !important;
}
.hc-posts--dark .elementor-post__title a { color: #fff !important; }
.hc-posts .elementor-post__badge {
	position: static !important;
	display: inline-block;
	margin: 0 0 12px !important;
	background: var(--hc-lime) !important;
	color: var(--hc-ink) !important;
	border-radius: 999px !important;
	font: 600 12px/1 "Inter", sans-serif !important;
	padding: 7px 12px !important;
	text-transform: none !important;
}
.hc-posts .elementor-post__card .elementor-post__badge { margin: 0 0 12px !important; }
.hc-posts .elementor-post__meta-data,
.hc-posts .elementor-post__card .elementor-post__meta-data { border: 0 !important; padding: 0 !important; color: var(--hc-grey); }
.hc-posts .elementor-post__avatar { display: none; }
.hc-posts .elementor-post__read-more { color: var(--hc-ink) !important; font-weight: 600; }
.hc-posts .elementor-pagination { margin-top: 48px; font-weight: 600; }
.hc-posts--work .elementor-post__thumbnail { padding-bottom: 70% !important; }

/* Post / project body copy ----------------------------------------------- */
.hc-prose { font-size: 18px; line-height: 1.7; color: #3b3935; }
.hc-prose h2 { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; margin: 1.6em 0 .5em; color: var(--hc-ink); }
.hc-prose h3 { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 24px; margin: 1.4em 0 .4em; color: var(--hc-ink); }
.hc-prose a { color: var(--hc-ink); text-decoration-color: var(--hc-lime); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.hc-prose img { border-radius: 6px; }
.hc-prose blockquote { border-left: 3px solid var(--hc-lime); margin: 1.5em 0; padding-left: 1em; font-family: var(--hc-serif); font-style: italic; font-size: 1.3em; }

/* Accordion (FAQs) -------------------------------------------------------- */
.hc-faq .elementor-accordion-item { border: 0 !important; border-top: 1px solid var(--hc-line) !important; }
.hc-faq .elementor-accordion-item:last-child { border-bottom: 1px solid var(--hc-line) !important; }
.hc-faq .elementor-tab-title { padding: 26px 0 !important; }
.hc-faq .elementor-tab-content { padding: 0 0 28px !important; border: 0 !important; }

/* Forms ------------------------------------------------------------------- */
.hc-form .elementor-field-group .elementor-field {
	background: var(--hc-paper) !important;
	border: 1px solid var(--hc-line) !important;
	border-radius: 10px !important;
	padding: 14px 16px !important;
	font-size: 15px;
}
.hc-form .elementor-field-group .elementor-field:focus { border-color: var(--hc-ink) !important; outline: none; }
.hc-form .elementor-field-label { font-size: 13px; font-weight: 500; color: var(--hc-grey); }

/* Post navigation --------------------------------------------------------- */
.hc-post-nav a { color: var(--hc-ink) !important; }
.hc-post-nav .post-navigation__prev--title,
.hc-post-nav .post-navigation__next--title { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 22px; }

/* Giant footer wordmark --------------------------------------------------- */
.hc-wordmark-wrap { overflow: hidden; }
.hc-wordmark .elementor-heading-title {
	font-size: clamp(72px, 19.6vw, 420px) !important;
	line-height: .78 !important;
	letter-spacing: -0.045em !important;
	white-space: nowrap;
	margin-bottom: -0.07em;
	text-align: center;
}

/* Small helpers ----------------------------------------------------------- */
.hc-nowrap { white-space: nowrap; }
.hc-footer-list p { margin: 0 0 6px; }
.hc-footer-list a { color: #fff; text-decoration: none; }
.hc-footer-list a:hover { color: var(--hc-lime); }
.hc-legal a { color: inherit; text-decoration: none; }
.hc-legal a:hover { color: #fff; }
.hc-breadcrumb a { color: inherit; text-decoration: none; }
.hc-breadcrumb a:hover { color: var(--hc-lime); }

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.hc-marquee__track, .hc-badge svg.hc-badge__ring { animation: none; }
	.hc-work-tile .elementor-widget-image img,
	.hc-posts .elementor-post__thumbnail img { transition: none; }
}
