/*
Theme Name:   Doran Consulting
Theme URI:    https://doran.co.uk
Description:  A custom GeneratePress child theme for Dorans Consulting
Author:       Doran Consulting
Author URI:   https://jakewoods.io
Template:     generatepress
Version:      0.1
Text Domain:  djw
*/

/** ----------------------------------------
 ** Custom Properties
 ** ----------------------------------------
    Sets custom properties to be used
 	repeatedly and consistently across site. 
 ** --------------------------------------- */
 :root {
	--headline-font: 'Manrope', sans-serif, system-ui;
	--body-font: 'Manrope', sans-serif, system-ui;
	--button-font: 'Manrope', sans-serif, system-ui;
	--headline-font-weight: 600;
	--button-font-weight: 600;
	--body-font-weight: 500;
	--headline-h1: clamp(1.95rem, 1.78rem + 0.89vw, 2.44rem);
	--headline-h2: clamp(1.56rem, 1.42rem + 0.71vw, 1.95rem);
	--headline-h3: clamp(1.4rem, 1.27rem + 0.63vw, 1.75rem);
	--headline-h4: clamp(1.25rem, 1.13rem + 0.57vw, 1.56rem);
	--headline-h5: clamp(1.18rem, 1.07rem + 0.54vw, 1.48rem);
	--headline-h6: clamp(1.12rem, 1.02rem + 0.51vw, 1.4rem);
    --body-l: clamp(1.12rem, 1.127rem + 0.363vw, 1.4rem);
	--body-m: clamp(1.1rem, 1.127rem + 0.363vw, 1.15rem); /* Inserted Chris */
	--body-d: clamp(1rem, 0.91rem + 0.45vw, 1rem);
    --body-s: clamp(0.8rem, 0.76rem + 0.2vw, 1rem);
	--space-xxxs: clamp(0.65rem,  0.584rem + 0.331vi, 0.75rem);
	--space-xxs:  clamp(0.75rem,  0.679rem + 0.357vi, 1rem);
	--space-xs:   clamp(1.25rem,  1.103rem + 0.734vi, 1.764rem);
	--space-s:    clamp(1.75rem,  1.494rem + 1.281vi, 2.647rem);
	--space-m:    clamp(2.25rem,  1.885rem + 1.827vi, 3.529rem);
	--space-l:    clamp(2.75rem,  2.275rem + 2.374vi, 4.412rem);
	--space-xl:   clamp(3.25rem,  2.666rem + 2.920vi, 5.294rem);
	--space-xxl:  clamp(3.75rem,  3.057rem + 3.466vi, 6.176rem);
	--space-xxxl: clamp(4.25rem,  3.447rem + 4.013vi, 7.059rem);
	--space-section: clamp(2.5rem, 1.437rem + 7vi, 5rem);
	--space-section-half: clamp(1.25rem, 1.437rem + 7vi, 2.5rem);
	--space-inline: clamp(1rem, 0.515rem + 3.09vi, 3.056rem);
	--space-header: 102px;
	--width-xs: 500px;
	--width-s: 768px;
	--width-m: 992px;
	--width-tb: 1024px;
	--width-d: 1280px;
	--width-l: 1300px;
	--width-xl: 1480px;
    --width-xxl: 1590px;
    --width-xxxl: 1720px;
    --width-full: 100%;
	--radius-xs: 0.3999rem;
    --radius-s: 0.6111rem;
    --radius-m: 1.8333rem;
    --radius-l: clamp(1.833rem, 1.347rem + 1.519vi, 2.444rem);
    --radius-xl: clamp(2.444rem, 1.472rem + 3.039vi, 3.667rem);
    --radius-xxl: clamp(2.444rem, -0.473rem + 9.116vi, 6.111rem);
    --radius-xxxl: clamp(2.444rem, -2.904rem + 16.713vi, 9.167rem);
	--radius-huge: clamp(3.667rem, -15.516rem + 59.945vi, 27.778rem);
	--radius-50: 50%;
	--radius-circle: var(--radius-50);
	--radius-pill: 100vw;
	--shadow-200: 0 2px 4px 0 rgba(41,55,71,0.12), 0 3px 6px 0 rgba(41,55,71,0.15);
	--shadow-300: 0 10px 20px 0 rgba(41,55,71,0.15), 0 3px 6px 0 rgba(41,55,71,0.10);
}

@media (max-width: 1024px) {
	:root {
		
	}
}

@media (max-width: 768px) {
	:root {
		--space-header: 96px;
	}
}

@view-transition {
  navigation: auto;
}

/** ----------------------------------------
 ** Body Classes
 ** ----------------------------------------
    Styles classed applied to the body.

	Useful in this build for dark-ui stuff.
 ** --------------------------------------- */


 /** ----------------------------------------
 ** Helper Classes
 ** ----------------------------------------
    Useful classes to do specfic things.
 ** --------------------------------------- */
/* Used to remove elements visually while preserving them in the DOM for SEO */
.hide-me {
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(0px 0px 99.9% 99.9%);
	clip-path: inset(0px 0px 99.9% 99.9%);
	overflow: hidden;
	height: 1px;
	width: 1px;
	padding: 0;
	border: 0;
}

/* No Underline */
.no-ul,
.no-ul a {
	text-decoration: none;
}

/** ----------------------------------------
 ** Base Theme Overrides
 ** ----------------------------------------
    Sets custom properties to be used
 	repeatedly and consistently across site. 
 ** --------------------------------------- */
 /* Mobile Menu Trigger Button */
.mobile-menu-control-wrapper .menu-toggle,
.mobile-menu-control-wrapper .menu-toggle:hover,
.mobile-menu-control-wrapper .menu-toggle:focus,
.has-inline-mobile-toggle #site-navigation.toggled {
	background-color: transparent;
}

/* Freezes background layer when slideout panel is open */
body.slide-opened { 
	overflow: hidden; 
}

/** ----------------------------------------
 ** Typography
 ** ----------------------------------------
    Sets the global typography
 ** --------------------------------------- */
/* Default Body / p font settings */
p,
.body-d,
.body-s,
.body-l {
	color: var(--base-400);
	font-family: var(--body-font);
	font-weight: var(--body-font-weight);
	line-height: 1.6;
	margin-bottom: 1.5rem;
	text-wrap: pretty;
}

.body-d {
	font-size: var(--body-d);
}

.body-l {
	font-size: var(--body-l);
}

.body-s {
	font-size: var(--body-s);
}

/* Default Headings weight, margin, font-family */
h1,
h2,
h3,
h4,
h5,
h6,
.headline-h1,
.headline-h2,
.headline-h3,
.headline-h4,
.headline-h5,
.headline-h6,
.headline-pre {
	color: var(--base-500);
	font-family: var(--headline-font);
	font-weight: var(--headline-font-weight);
	line-height: 1.2;
	margin-bottom: 1rem;
}

/* Heading font-size */
.headline-xl {
	font-size: var(--headline-xl);
}

h1,
.headline-h1 {
	font-size: var(--headline-h1);
}

h2,
.headline-h2 {
	font-size: var(--headline-h2);
}

h3,
.headline-h3 {
	font-size: var(--headline-h3);
}

h4,
.headline-h4 {
	font-size: var(--headline-h4);
}

h5,
.headline-h5 {
	font-size: var(--headline-h5);
}

h6,
.headline-h6 {
	font-size: var(--headline-h6);
}

/* Add top margin to blog post H2-H6 except the first child */
.single-main-content .dynamic-entry-content :is(h2, h3, h4, h5, h6) {
    margin-top: var(--space-xxl);
}

/* Remove top margin if it is the first child within .single-main-content */
.single-main-content .dynamic-entry-content > :is(h2, h3, h4, h5, h6):first-child {
    margin-top: 0;
}

.single-main-content p {
	line-height: 1.8;
	max-width: 68ch;
}

p:last-child {
	margin-bottom: 0;
}

/* Remove bottom margin on last paragraph in container (front end) */
p:last-child:last-of-type {
	margin-bottom: 0px;
}

/* Remove bottom margin on last paragraph in container (editor) */
p:nth-last-child(1) {
	margin-bottom: 0px;
}

/* * List Styles */
#content ul,
#content ol {
	margin-left: 1.25rem;
}

#content li {
	font-family: var(--body-font);
	font-size: var(--body);
	font-weight: var(--body-font-weight);
	line-height: 1.75rem;
}



/** Clickable Parent **/
.clickable-parent {
    position: relative;
}

.clickable-parent a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
 
.clickable-parent a:is(:focus-visible)::after{
	outline: 2px solid;
}

.clickable-parent a:is(:hover, :focus){
	outline: none;
}

/** ----------------------------------------
 ** Links & Buttons
 ** ----------------------------------------
    Basic link styles are set in the customiser
	but you can extend them here
 ** --------------------------------------- */
.button {
	font-family: var(--button-font);
	font-weight: var(--button-font-weight);
	font-size: var(--body-d);
	line-height: 1;
	transition: all 0.2s ease-in-out;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
}

.button:is(:hover, :focus) {
	transition: all 0.2s ease-in-out;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
}

/** ----------------------------------------
 ** Header
 ** ----------------------------------------
    Styles the site Header
 ** --------------------------------------- */
/** DESKTOP HEADER **/
header.site-header {
	padding: var(--space-xs) var(--space-inline);
}

header.site-header .inside-header,
.main-navigation.sticky-navigation-transition .inside-navigation {
	background-color: var(--base-100);
	border: 1px solid var(--brand-light);
	border-radius: var(--radius-s);
	-webkit-border-radius: var(--radius-s);
	-moz-border-radius: var(--radius-s);
	-ms-border-radius: var(--radius-s);
	-o-border-radius: var(--radius-s);
	/* box-shadow: var(--shadow-300); */
	padding-block: 0.5rem!important;
	padding-inline: calc(var(--space-inline) / 2 )!important;
}

.main-navigation.sticky-navigation-transition .inside-navigation {
	box-shadow: var(--shadow-300);
}

.sticky-enabled .main-navigation.is_stuck {
	box-shadow: none!important;
}

#sticky-navigation.is_stuck.sticky-nav-scrolling-up {
    transform: translateY(var(--space-xs));
}

.navigation-branding img {
	height: 56px!important;
	width: 56px!important;
	padding: 0!important
}

@media (max-width: 768px) {
	.main-navigation.sticky-navigation-transition .inside-navigation {
		margin-top: var(--space-xs);
		margin-inline: var(--space-inline);
	}
}


/** ----------------------------------------
 ** Desktop Navigation
 ** ----------------------------------------
    Styles the main desktop navigation
 ** --------------------------------------- */
 header.site-header .menu {
	margin-right:var(--space-xxxs);
}

header.site-header .menu li a {
	border-radius: var(--radius-xs);
	color: var(--brand-dark);
	font-family: var(--button-font);
	font-weight: var(--button-font-weight);
	font-size: var(--body-d);
	padding-inline: var(--space-xxxs);
}

header.site-header .menu li a:is(:hover, :focus) {
	background-color: var(--brand-light);
	color: var(--brand)!important;
}


/** ----------------------------------------
 ** Mobile Navigation
 ** ----------------------------------------
    Styles the mobile navigation
 ** --------------------------------------- */
.site-header .menu-toggle {
	color: var(--brand-dark);
	margin-left: var(--space-xxs)
}

@media (max-width: 768px) {

	.site-header .menu {
		padding-top: var(--space-xxxs);
	}

	.site-header .menu li {
		border-bottom: 1px solid var(--brand-light);
	}

	.site-header .menu li:first-child {
		border-top: 1px solid var(--brand-light);
	}

	.site-header .menu li:last-child {
		border-bottom: none;
	}
}

/** ----------------------------------------
 ** Footer Navigation
 ** ----------------------------------------
    Styles the footer navigation
 ** --------------------------------------- */
.footer__navigation ul.gb-menu {
	align-items: flex-start;
	flex-direction: column;
	gap: var(--space-xxxs);
}

.footer__navigation ul.gb-menu li a {
	color: var(--base-100);
	font-family: var(--button-font);
	font-weight: var(--button-font-weight);
	font-size: var(--body-d);
	padding: 0;
	transition: all 0.2s ease-in-out;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
}

.footer__navigation ul.gb-menu li a:is(:hover, :focus) {
	color: var(--brand-light)!important;
	text-decoration: underline;
}

 /** ----------------------------------------
 ** Widths
 ** ----------------------------------------
    Global Styles for widths
 ** --------------------------------------- */
.width-xs {
    width: 100%;
    max-width: var(--width-xs);
}

.width-s {
    width: 100%;
    max-width: var(--width-s);
}

.width-m {
    width: 100%;
    max-width: var(--width-m);
}

.width-d {
    width: 100%;
    max-width: var(--width-d);
}

.width-l {
    width: 100%;
    max-width: var(--width-l);
}

.width-xl {
    width: 100%;
    max-width: var(--width-xl);
}

.width-xxl {
    width: 100%;
    max-width: var(--width-xxl);
}

.width-xxxl {
    width: 100%;
    max-width: var(--width-xxxl);
}

.width-full {
    width: 100%;
    max-width: var(--width-full);
}

/** ----------------------------------------
 ** Forms
 ** ----------------------------------------
    Basic styles for Fluent Forms
 ** --------------------------------------- */
 form.frm-fluent-form label {
	color: var(--secondary);
	font-family: var(--headline-font);
	font-size: 0.8235rem;
	font-weight: var(--headline-font-weight)!important;
/*	padding-left: 0.8235rem;*/
}

.fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label:after {
	color: var(--accent);
}

form.frm-fluent-form .ff-el-input--label {
	margin-bottom: 0.25rem;
}

/* Inputs, Text Areas & Selects */
form.frm-fluent-form input,
form.frm-fluent-form textarea,
form.frm-fluent-form select {
	background-color: var(--base-100)!important;
	border: 2px solid var(--base-300)!important;
	border-radius: var(--radius-s)!important;
	color: var(--base-500)!important;
	font-family: var(--headline-font)!important;
	font-size: 0.8235rem!important;
	font-weight: var(--headline-font-weight);
	padding: 0.8235rem!important;
	-webkit-border-radius: var(--radius-s)!important;
	-moz-border-radius: var(--radius-s)!important;
	-ms-border-radius: var(--radius-s)!important;
	-o-border-radius: var(--radius-s)!important;
}

form.frm-fluent-form input::placeholder,
form.frm-fluent-form textarea::placeholder,
form.frm-fluent-form select::placeholder {
	color: var(--base-300)!important;
}

form.frm-fluent-form input:focus,
form.frm-fluent-form textarea:focus,
form.frm-fluent-form select:focus {
	border-color: var(--accent)!important;
}

/* Submit Button */
button.ff-btn-submit {
	width: 100%;
}

/** ----------------------------------------
 ** Search Block - Gutenberg
 ** ----------------------------------------
    Custom styles for the WP Search Block
 ** --------------------------------------- */
/** Label **/
.wp-block-search label.wp-block-search__label {
	display: block;
	font-family: var(--body-font);
	font-size: var(--body);
	margin-bottom: 0.75rem;
}

/* No search results */
.no-search-results .wp-block-search label.wp-block-search__label,
.error404 .wp-block-search label.wp-block-search__label {
	text-align: center;
}

/** Search Field **/
.wp-block-search .wp-block-search__inside-wrapper {
	display: flex;
}

.wp-block-search input.wp-block-search__input {
	background-color: var(--base-100);
	border: 1px solid var(--brand-light);
	padding: 0.75rem 1rem;
	width: 100%;
}

.wp-block-search input.wp-block-search__input::placeholder {
	color: var(--base-400);
}

.wp-block-search input.wp-block-search__input:focus {
	border-color: var(--brand);
}

/** Search Button **/
.wp-block-search button.wp-block-search__button {
	background-color: var(--brand);
	color: var(--base-100);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.wp-block-search button.wp-block-search__button svg {
	fill: var(--base-100);
}

/** Templates - 404 **/
.error404 .wp-block-search {
	max-width: 500px;
	width: 100%;
}

/* Scroll Animation */
.card__underline {
    position: relative;
}

.card__underline:after {
    content: '';
    display: block;
    height: 3px;
    width: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--brand);
    will-change: width;
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry calc(10% + (var(--delay-factor) * 3%)) contain 40%;
}

@keyframes reveal {
    from {
        width: 0;
    }

	to {
		width: 100%;
	}
}

/** ----------------------------------------
 ** Filters - WP Grid Builder
 ** ----------------------------------------
    Custom styles for the WPGrid Builder
	Filters
 ** --------------------------------------- */
.filters .wpgb-facet-2 button.wpgb-button {
    align-items: center;
    background-color: transparent;
    border: 2px solid var(--brand)!important;
    color: var(--brand)!important;
    column-gap: var(--space-xxxs);
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: center;
    border: 1px solid var(--brand);
    border-radius: var(--radius-xs);
    font-family: var(--button-font);
    font-weight: var(--button-font-weight);
    font-size: var(--body-d);
    line-height: 1;
    padding: var(--space-xxxs);
    position: relative;
    transition: all 0.2s ease-in-out;
}

.filters .wpgb-facet-2 button.wpgb-button:after {
    content: "";
    background-image: url('https://doran-staging.mystagingwebsite.com/wp-content/uploads/2026/03/doran-consulting-logo-colour.svg');
    height: 24px;
    order: 1;
    width: 24px;
}

.wpgb-select {
    border: 0!important;
    border-bottom: 3px solid var(--brand)!important;
    border-radius: 0!important;
	font-family: var(--button-font);
    font-weight: var(--button-font-weight);
    font-size: var(--body-d);
}

.wpgb-select .wpgb-select-placeholder {
    padding-inline: 0;
}

.wpgb-select .wpgb-select-controls button {
    color: var(--brand);
    padding-right: 0;
}

.wpgb-select .wpgb-select-controls .wpgb-select-separator {
    display: none;
}

@media (max-width: 768px) {
	.wpgb-facet {
		width: 100%;
	}
	
	.wpgb-button {
		width: 100%;
	}
}

/** WPGB PAGINATION **/
.wpgb-facet .wpgb-pagination {
	display: flex!important;
	justify-content: center;
	margin-left: 0!important;
}

.wpgb-facet .wpgb-pagination li.wpgb-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wpgb-facet .wpgb-pagination li.wpgb-page a,
.wpgb-facet .wpgb-pagination li.wpgb-page a {
    color: var(--brand-dark);
	font-family: var(--body-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 14px;
	transition: all .2s ease-in-out;
}

.wpgb-facet .wpgb-pagination li.wpgb-page a:hover,
.wpgb-facet .wpgb-pagination li.wpgb-page a:hover {
	color: var(--brand);
	font-size: 14px;
	font-weight: 600;
	line-height: 14px;
}

.wpgb-facet .wpgb-pagination li.wpgb-page-next,
.wpgb-facet .wpgb-pagination li.wpgb-page-prev {
	background-color: transparent;
	border: 2px solid var(--brand);
    color: var(--brand);
    border-radius: var(--radius-xs)
}

.wpgb-facet .wpgb-pagination li.wpgb-page-next a:hover,
.wpgb-facet .wpgb-pagination li.wpgb-page-prev a:hover {
	color: var(--brand);
}

/** ----------------------------------------
 ** ANIMATIONS
 ** ----------------------------------------
    Animation Styles
 ** --------------------------------------- */
/* ROW STAGGERED CARD ANIMATION */
[data-stagger-grid] .hover-card,
.stagger-grid .hover-card,
.stagger-grid-team .hover-card {
  opacity: 0;
  transform: translateY(var(--space-md, 24px));
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

[data-stagger-grid] .hover-card.is-visible,
.stagger-grid .hover-card.is-visible,
.stagger-grid-team .hover-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-stagger-grid] .hover-card,
  .stagger-grid .hover-card,
  .stagger-grid-team .hover-card {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* Base state: transitions live on the elements whose properties actually change */
[data-animate-dark] {
  transition: background-color 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate-dark] h1,
[data-animate-dark] h2,
[data-animate-dark] h3,
[data-animate-dark] p,
[data-animate-dark] a,
[data-animate-dark] span {
  transition: color 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate-dark],
  [data-animate-dark] * {
    transition: none;
  }
}