/*
Theme Name: Flatsome Child
Description: Equine Investment Services Ltd – Flatsome child theme.
Author: Wye Media
Template: flatsome
Version: 1.0.1
*/

/* =========================================================================
   Tokens (colours/fonts are also set in Flatsome → Style)
   ========================================================================= */
:root {
	--ei-white: #ffffff;
	--ei-dark: #4d4d4d;
	--ei-darker: #414141;
	--ei-ink: #1b1b1b;
	--ei-nav: #151515;
	--ei-text: #5e5e5e;
	--ei-text-on-dark: #eaeaea;
	--ei-muted-on-dark: #dcdcdc;
	--ei-btn-ink: #303030;
	--ei-line: #e2e2e2;
	--ei-ls-wide: 0.214em;
	--ei-ls-label: 0.125em;
	--ei-ls-h4: 0.045em;
	--ei-ls-h1: 0.031em;
}

/* =========================================================================
   Typography
   ========================================================================= */
body { color: var(--ei-text); line-height: 1.5; }
h1, h2, h3, h4, h5, h6 { color: var(--ei-ink); font-weight: 400; }
body h4 {
	font-family: "Open Sans", Arial, sans-serif;
	font-weight: 400;
	font-size: 22px;
	letter-spacing: var(--ei-ls-h4);
	line-height: 1.25;
	margin-bottom: 20px;
}
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5 { color: var(--ei-white); }
.dark, .dark p, .dark td { color: var(--ei-text-on-dark); }

/* Section label e.g. "ABOUT US" */
body .ei-label {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: var(--ei-ls-label);
	text-transform: uppercase;
	color: var(--ei-ink);
	line-height: 1.25;
	margin-bottom: 32px;
}
.dark .ei-label { color: var(--ei-white); }

/* =========================================================================
   Buttons
   ========================================================================= */
.button, button.button, input[type=submit] {
	font-weight: 700;
	letter-spacing: var(--ei-ls-wide);
	border-radius: 0;
	padding: 6px 40px;
	min-height: 52px;
	line-height: 40px;
}
.button.white, .button.white:hover { color: var(--ei-btn-ink) !important; }
.button:hover { opacity: .85; box-shadow: none; }

/* =========================================================================
   Header
   ========================================================================= */
.header-main .nav, .header-bottom .nav > li > a { letter-spacing: var(--ei-ls-wide); }
.header-bottom .nav > li > a { font-size: 14px; color: var(--ei-nav); }
.header-bottom .nav-line-bottom > li > a::before { background-color: var(--ei-nav); height: 1px; }
.header-bottom { border: 0; }
.header-main { border-bottom: 0; }
@media (min-width: 850px) {
	.header-bottom-nav > li { margin: 0 16px; }
}

/* =========================================================================
   Home – hero
   ========================================================================= */
.ei-hero-panel > .col-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.ei-hero-panel .ei-kicker {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px; letter-spacing: var(--ei-ls-label); text-transform: uppercase;
	color: var(--ei-white); margin: 0 0 16px;
}
.ei-hero-panel h1 {
	font-size: 32px; font-weight: 500; letter-spacing: var(--ei-ls-h1);
	line-height: 1.25; color: var(--ei-white); margin: 0 0 24px;
}
.ei-hero-panel p { color: var(--ei-muted-on-dark); margin-bottom: 32px; }

/* =========================================================================
   Scrolling tagline  [ei_marquee]
   ========================================================================= */
.ei-marquee { overflow: hidden; white-space: nowrap; padding: 32px 0 16px; }
.ei-marquee__track { display: inline-flex; animation: ei-marquee 30s linear infinite; }
.ei-marquee__item {
	font-family: "Libre Franklin", Arial, sans-serif; font-weight: 500;
	font-size: 32px; letter-spacing: var(--ei-ls-h1); line-height: 1.25;
	color: var(--ei-ink); padding-right: 1.2em;
}
@keyframes ei-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ei-marquee__track { animation: none; } }

/* =========================================================================
   Columns that vertically centre their content / fill with an image
   ========================================================================= */
.ei-center > .col-inner { text-align: center; }
.ei-cover > .col-inner,
.ei-cover > .col-inner > .img,
.ei-cover > .col-inner > .img > .img-inner { height: 100%; }
.ei-cover > .col-inner > .img > .img-inner { padding-top: 0 !important; min-height: 360px; }
.ei-cover > .col-inner > .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Dark panel with padding (Team / Pin Hooking) */
.ei-panel p { font-size: 14px; line-height: 1.6; margin-bottom: 0; }
.ei-panel p + h4 { margin-top: 32px; }
.ei-panel .ei-label { margin-bottom: 24px; }

/* =========================================================================
   Quote
   ========================================================================= */
.ei-quote { text-align: center; margin: 0; padding: 0 24px; border: 0; font-style: normal; }
.ei-quote__mark { font-family: Georgia, serif; font-size: 72px; line-height: .6; height: 36px; color: #b5b5b5; margin-bottom: 16px; }
.ei-quote__text { font-family: "Libre Franklin", Arial, sans-serif; font-size: 28px; line-height: 1.3; color: var(--ei-ink); margin: 0; }
.ei-quote__rule { width: 40px; height: 1px; background: #b5b5b5; margin: 32px auto 24px; border: 0; }
.ei-quote cite { font-size: 14px; font-style: normal; color: var(--ei-text); }

/* =========================================================================
   Dark caption box under an image (About page)
   ========================================================================= */
.ei-dark-box {
	background: var(--ei-dark);
	color: var(--ei-text-on-dark);
	text-align: center;
	padding: 32px 40px 40px;
}
.ei-dark-box h4 { color: var(--ei-white); margin-bottom: 24px; }
.ei-dark-box p { color: var(--ei-text-on-dark); margin: 0 0 1em; }
.ei-dark-box p:last-child { margin-bottom: 0; }
.col-inner > .img:has(+ .ei-dark-box) { margin-bottom: 0; }
.ei-cards > .col > .col-inner { display: flex; flex-direction: column; height: 100%; }
.ei-cards .ei-dark-box { flex: 1; }

.ei-aside { margin-top: 48px; }
.ei-aside .button { margin: 24px 0 0; padding: 6px 32px; }
@media (max-width: 849px) { .ei-aside { margin-top: 0; } }

.ei-partner-logo { max-width: 150px; margin-left: auto; margin-right: auto; }
.ei-partners h3 { font-family: "Libre Franklin", Arial, sans-serif; font-size: 28px; margin-bottom: 32px; }

/* =========================================================================
   Contact section  [ei_contact_form] [ei_contact_details] [ei_office_hours]
   ========================================================================= */
.ei-form input[type=text],
.ei-form input[type=email] {
	background: transparent; border: 0; border-bottom: 1px solid #cfcfcf; box-shadow: none;
	color: var(--ei-white); padding: 8px; margin-bottom: 24px; border-radius: 0; height: auto;
}
.ei-form textarea {
	background: transparent; border: 1px solid #cfcfcf; box-shadow: none;
	color: var(--ei-white); padding: 12px; min-height: 144px; margin-bottom: 24px; border-radius: 0;
}
.ei-form input:focus, .ei-form textarea:focus { border-color: var(--ei-white); background: transparent; box-shadow: none; }
.ei-form ::placeholder { color: var(--ei-text-on-dark); opacity: 1; font-size: 14px; }
.ei-form .ei-hp { position: absolute; left: -9999px; }
.ei-form .button { margin: 0; }
.ei-form__notice { padding: 16px; margin-bottom: 24px; background: rgba(255,255,255,.1); color: var(--ei-white); }
.ei-contact-details h4 { margin-bottom: 24px; }
.ei-contact-details p { margin-bottom: 32px; }
.ei-contact-details a, .dark .ei-contact-details a { color: var(--ei-white); }
.ei-contact-details a:hover { text-decoration: underline; }
.ei-hours { width: auto; border: 0; font-size: 14px; }
.ei-hours td { border: 0; padding: 2px 16px 2px 0; color: var(--ei-text-on-dark); }
.ei-hours tr.is-today td { font-weight: 700; color: var(--ei-white); }

/* =========================================================================
   Social icons  [ei_social]
   ========================================================================= */
.ei-social { display: flex; justify-content: center; gap: 32px; }
.ei-social a { display: block; width: 32px; height: 32px; }
.ei-social svg { width: 100%; height: 100%; display: block; }

/* =========================================================================
   Gallery page slider
   ========================================================================= */
.ei-gallery-slider .flickity-slider > * { padding: 0 2px; }
.ei-thumbs .gallery-col { flex-basis: 80px !important; max-width: 80px !important; padding: 0 5px 10px !important; }

/* =========================================================================
   Blog / News
   ========================================================================= */
.blog-archive .page-title, .blog-archive h1.page-title {
	font-family: "Open Sans", Arial, sans-serif; font-size: 16px; font-weight: 400;
	letter-spacing: var(--ei-ls-label); text-transform: uppercase; color: var(--ei-ink);
}
.ei-news-head { padding-top: 24px; }
.ei-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 32px; }
.ei-filter a { color: var(--ei-ink); font-size: 14px; }
.ei-filter a.is-active { font-weight: 700; }
.ei-filter a:hover { text-decoration: underline; }
.post-item .box-text h5 { font-family: "Open Sans", Arial, sans-serif; font-size: 22px; font-weight: 400; letter-spacing: var(--ei-ls-h4); text-transform: none; }
.post-item .col-inner { border: 1px solid var(--ei-line); }
.entry-content li { font-weight: 700; color: var(--ei-ink); }

/* Privacy Policy and other plain pages */
.page-template-page-blank-title-center .page-wrapper { padding-top: 24px; }
.page-template-page-blank-title-center .entry-title {
	font-family: "Open Sans", Arial, sans-serif; font-size: 22px; font-weight: 400;
	letter-spacing: var(--ei-ls-h4); color: var(--ei-ink); margin-bottom: 48px;
}
.page-template-page-blank-title-center .entry-header .is-divider { display: none; }
.page-template-page-blank-title-center .entry-content { max-width: 720px; margin: 0 auto; font-size: 14px; line-height: 1.55; }
.page-template-page-blank-title-center .entry-content p { margin-bottom: 0; }

/* =========================================================================
   Footer
   ========================================================================= */
.absolute-footer { padding: 48px 0 56px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.absolute-footer a { color: var(--ei-white); text-transform: none; letter-spacing: 0; font-size: 14px; }
.absolute-footer .ei-footer-links { margin-bottom: 32px; }
.absolute-footer .ei-footer-name { font-weight: 700; letter-spacing: .09em; margin-bottom: 32px; }

/* Cookie notice */
.flatsome-cookies { background: var(--ei-dark); color: var(--ei-text-on-dark); }

@media only screen and (max-width: 48em) {
	/*************** MOBILE ONLY ***************/
	body h4 { font-size: 20px; }
	.ei-hero-panel h1, .ei-marquee__item { font-size: 28px; }
	.ei-quote__text, .ei-partners h3 { font-size: 24px; }
	.ei-panel > .col-inner { padding: 40px 24px !important; }
	.ei-cover > .col-inner > .img > .img-inner { min-height: 280px; }
}
