/**
* Theme additions that sit on top of the compiled design CSS in style.css.
* Kept intentionally small - the design ships its own utility classes.
*/

/* Offset for the fixed header on inner pages. */
.geefit-page-top {
	padding-top: 5rem;
}

@media (min-width: 1024px) {
	.geefit-page-top {
		padding-top: 6.5rem;
	}
}
@media (min-width: 767px) {
	.grid-cols-1.lg\:grid-cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
	.h-72.lg\:h-auto{
		height:auto;
	}
	.h-72 {
		height: calc(var(--spacing) * 90);
	}
}
/* Accessibility: visible skip link. */
.skip-link:focus {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 200;
	padding: 0.75rem 1.25rem;
	background: #6ab944;
	color: #fff;
	border-radius: 9999px;
	font-size: 0.875rem;
	font-weight: 600;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto !important;
	height: auto;
	width: auto;
	display: block;
}

/* WordPress core alignment + caption classes for editor content. */
.geefit-entry img { max-width: 100%; height: auto; }
.geefit-entry .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.geefit-entry .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.geefit-entry .aligncenter { display: block; margin: 0 auto 1.5rem; }
.geefit-entry .wp-caption-text { font-size: 0.8125rem; color: #666; margin-top: 0.5rem; }
.geefit-entry blockquote {
	border-left: 4px solid #6ab944;
	padding-left: 1.25rem;
	margin: 1.5rem 0;
	font-style: italic;
}
.geefit-entry h1, .geefit-entry h2, .geefit-entry h3, .geefit-entry h4 {
	font-family: Barlow, sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	margin: 2rem 0 1rem;
	line-height: 1.15;
}
.geefit-entry h2 { font-size: 1.875rem; }
.geefit-entry h3 { font-size: 1.5rem; }
.geefit-entry p { margin-bottom: 1.25rem; line-height: 1.75; }
.geefit-entry ul, .geefit-entry ol { margin: 0 0 1.25rem 1.5rem; line-height: 1.75; }
.geefit-entry ul { list-style: disc; }
.geefit-entry ol { list-style: decimal; }
.geefit-entry a { color: #6ab944; text-decoration: underline; }

/**
* Contact Form 7.
*
* On the Contact page the form controls already carry the design's Tailwind
* classes (applied through CF7's class: option), so the rules below only fill
* in what CF7 adds itself. The generic control styling is scoped away from the
* dark form so it cannot override those classes.
*/
.geefit-form:not(.geefit-form-dark) .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance span input) {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	background: #fff;
	color: #000;
}

.geefit-form:not(.geefit-form-dark) .wpcf7-submit {
	background-color: #6ab944;
	color: #fff;
	border: 0;
	border-radius: 9999px;
	padding: 0.75rem 2rem;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.geefit-form .wpcf7-form-control:focus {
	outline: none;
	border-color: #6ab944;
	box-shadow: 0 0 0 3px rgba(106, 185, 68, 0.15);
}

/* CF7 wraps every control in a span; make it fill the column. */
.geefit-form .wpcf7-form-control-wrap { display: block; width: 100%; }

/* The submit button on the dark form: green pill, as per the design. */
.geefit-form .geefit-submit {
	background-color: #6ab944;
	border: 0;
	cursor: pointer;
	transition: opacity 0.2s;
}

.geefit-form .geefit-submit:hover { opacity: 0.9; }

/* Native select arrow is hidden by appearance-none, so draw the design's one. */
.geefit-form select.wpcf7-form-control {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
}

.geefit-form .wpcf7-not-valid-tip { color: #f87171; font-size: 0.8125rem; margin-top: 0.25rem; }
.geefit-form .wpcf7-not-valid { border-color: #f87171 !important; }

.geefit-form .wpcf7-response-output {
	border-radius: 0.5rem;
	margin: 1.25rem 0 0;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	color: #fff;
}

.geefit-form:not(.geefit-form-dark) .wpcf7-response-output { color: #000; }
.geefit-form .wpcf7-spinner { margin: 0.75rem auto 0; display: block; }

/* Rotate chevron on open FAQ items and mobile menu parents. */
.rotate-180 { transform: rotate(180deg); }

/**
* ---------------------------------------------------------------------------
* Mobile image framing
* ---------------------------------------------------------------------------
* Several source photos are portrait (2:3, 3:4). On desktop they sit in tall
* containers and look right, but the mobile layouts put them in short, wide
* boxes - so object-cover crops ~50% off, taking the top of people's heads
* with it.
*
* Nudging the focal point above centre fixes those. It is safe to apply
* broadly because object-position's vertical value only has an effect when the
* image is being cropped vertically: a landscape photo in a wider-than-tall
* box is cropped on its sides, where this value is inert. Images that opt into
* an explicit focal point keep it.
*/
@media (max-width: 1023px) {
	img.object-cover:not(.object-top):not(.object-bottom):not(.object-left):not(.object-right) {
		object-position: center 22%;
	}
}

/**
* Two hover variants the design's compiled CSS does not ship, needed by the
* green footer menu and the WhatsApp button's grouped hover.
*/
.hover\:text-white:hover { color: #fff; }
.group:hover .group-hover\:bg-\[\#1DA851\] { background-color: #1da851; }

/* Floating WhatsApp button: the label only appears once there is room for it. */
@media (max-width: 380px) {
	.geefit-whatsapp__label { display: none; }
}

/**
* ---------------------------------------------------------------------------
* Comments
* ---------------------------------------------------------------------------
* Uses the same language as the rest of the design: Barlow uppercase headings,
* the brand green for accents, rounded-xl inputs and pill buttons.
*/
.geefit-comments {
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 1px solid #e5e7eb;
}

.geefit-comments__title,
.geefit-comment-form__title {
	font-family: Barlow, sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 1.5rem;
	line-height: 1.15;
	color: #000;
	margin: 0 0 2rem;
}

.geefit-comments__list,
.geefit-comments__list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.geefit-comments__list .children {
	margin-left: 1.5rem;
	padding-left: 1.5rem;
	border-left: 2px solid #f3f4f6;
}

@media (min-width: 640px) {
	.geefit-comments__list .children {
		margin-left: 3.5rem;
	}
}

.geefit-comments__list .comment,
.geefit-comments__list .pingback {
	margin-bottom: 1.25rem;
}

/* The comment card. */
.geefit-comments__list .comment-body {
	position: relative;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	padding: 1.5rem;
	transition: border-color 0.2s;
}

.geefit-comments__list .comment-body:hover {
	border-color: #6ab944;
}

.geefit-comments__list .comment-meta {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin-bottom: 0.875rem;
}

.geefit-comments__list .comment-author img.avatar {
	border-radius: 9999px;
	display: block;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
}

.geefit-comments__list .comment-author {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	font-family: Barlow, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.9375rem;
	color: #000;
}

.geefit-comments__list .comment-author a,
.geefit-comments__list .comment-author .fn {
	color: #000;
	text-decoration: none;
	font-style: normal;
}

.geefit-comments__list .comment-author .says { display: none; }

.geefit-comments__list .comment-metadata {
	margin-left: auto;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
}

.geefit-comments__list .comment-metadata a {
	color: #6ab944;
	text-decoration: none;
}

.geefit-comments__list .comment-metadata a:hover { text-decoration: underline; }

.geefit-comments__list .comment-content {
	font-size: 0.9375rem;
	line-height: 1.75;
	color: #000;
}

.geefit-comments__list .comment-content p { margin: 0 0 1rem; }
.geefit-comments__list .comment-content p:last-child { margin-bottom: 0; }

.geefit-comments__list .comment-content blockquote {
	border-left: 3px solid #6ab944;
	padding-left: 1rem;
	margin: 1rem 0;
	font-style: italic;
	color: #374151;
}

/* "Awaiting moderation" flag. */
.geefit-comments__list .comment-awaiting-moderation {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	background: rgba(106, 185, 68, 0.125);
	color: #4d8a31;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* Reply link as a small pill. */
.geefit-comments__list .reply { margin-top: 1rem; }

.geefit-comments__list .comment-reply-link {
	display: inline-block;
	padding: 0.375rem 1.125rem;
	border-radius: 9999px;
	border: 1px solid #6ab944;
	color: #6ab944;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.geefit-comments__list .comment-reply-link:hover {
	background: #6ab944;
	color: #fff;
}

.geefit-comments__nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 2rem 0;
	font-size: 0.875rem;
	font-weight: 600;
}

.geefit-comments__nav a { color: #6ab944; text-decoration: none; }
.geefit-comments__nav a:hover { text-decoration: underline; }

.geefit-comments__closed {
	margin-top: 1.5rem;
	font-size: 0.875rem;
	color: #6b7280;
}

/* ------------------------------------------------------------- The form. */
.geefit-comment-form {
	margin-top: 3rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	padding: 2rem;
}

@media (min-width: 768px) {
	.geefit-comment-form { padding: 2.5rem; }
}

.geefit-comment-form__title { margin-bottom: 0.75rem; }

.geefit-comment-form__title small {
	display: inline-block;
	margin-left: 0.75rem;
	font-family: Poppins, sans-serif;
	font-size: 0.8125rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

.geefit-comment-form__title small a { color: #6ab944; }

.geefit-comment-form__notes,
.geefit-comment-form .comment-notes {
	font-size: 0.8125rem;
	color: #6b7280;
	margin: 0 0 1.75rem;
}

.geefit-comment-form label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #000;
	margin-bottom: 0.5rem;
}

.geefit-comment-form input[type="text"],
.geefit-comment-form input[type="email"],
.geefit-comment-form input[type="url"],
.geefit-comment-form textarea {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	font-family: Poppins, sans-serif;
	font-size: 0.875rem;
	color: #000;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.geefit-comment-form input[type="text"]:focus,
.geefit-comment-form input[type="email"]:focus,
.geefit-comment-form input[type="url"]:focus,
.geefit-comment-form textarea:focus {
	outline: none;
	border-color: #6ab944;
	box-shadow: 0 0 0 3px rgba(106, 185, 68, 0.15);
}

.geefit-comment-form textarea { resize: vertical; min-height: 9rem; }

.geefit-comment-form p { margin: 0 0 1.25rem; }

/* Name / email / website sit side by side from tablet up. */
@media (min-width: 768px) {
	.geefit-comment-form .comment-form-author,
	.geefit-comment-form .comment-form-email,
	.geefit-comment-form .comment-form-url {
		display: inline-block;
		width: calc(33.333% - 0.667rem);
		vertical-align: top;
		margin-right: 1rem;
	}

	.geefit-comment-form .comment-form-url { margin-right: 0; }
}

.geefit-comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: 0.8125rem;
}

.geefit-comment-form .comment-form-cookies-consent input { margin-top: 0.2rem; flex-shrink: 0; }

.geefit-comment-form .comment-form-cookies-consent label {
	font-size: 0.8125rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: #4b5563;
	margin: 0;
}

.geefit-comment-form__submit,
.geefit-comment-form input[type="submit"] {
	background-color: #6ab944;
	color: #fff;
	border: 0;
	border-radius: 9999px;
	padding: 0.875rem 2.25rem;
	font-family: Barlow, sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: opacity 0.2s;
}

.geefit-comment-form__submit:hover,
.geefit-comment-form input[type="submit"]:hover { opacity: 0.9; }

.geefit-comment-form .form-submit { margin-bottom: 0; }

/* "Cancel reply" next to the heading. */
#cancel-comment-reply-link {
	font-family: Poppins, sans-serif;
	font-size: 0.8125rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: #6ab944;
	margin-left: 0.75rem;
}

.geefit-comment-form .logged-in-as {
	font-size: 0.8125rem;
	color: #6b7280;
	margin-bottom: 1.75rem;
}

.geefit-comment-form .logged-in-as a { color: #6ab944; }

/**
* A few utilities the blog/search/404 templates need that the design's
* compiled CSS does not ship (it was generated only from the marketing pages).
*/
.text-right { text-align: right; }
.mt-12 { margin-top: 3rem; }
.pt-8 { padding-top: 2rem; }
.max-w-md { max-width: 28rem; }
.col-span-full { grid-column: 1 / -1; }
.border-gray-300 { border-color: #d1d5db; }
.pb-18 { padding-bottom: 4.5rem; }

@media (min-width: 1024px) {
	.lg\:w-1\/3 { width: 33.333333%; }
	.lg\:w-2\/3 { width: 66.666667%; }
	.lg\:pb-18 { padding-bottom: 4.5rem; }
}

/* Pagination links inherit the design's pill styling. */
.geefit-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 9999px;
	border: 1px solid #e5e7eb;
	color: #000;
	text-decoration: none;
}

.geefit-pagination .page-numbers.current,
.geefit-pagination .page-numbers:hover {
	background-color: #6ab944;
	border-color: #6ab944;
	color: #fff;
}

.geefit-pagination .screen-reader-text { display: none; }

/* -------------------------------------------------------------------------
* Hero height: grow rather than crop.
*
* The heroes are sized with a fixed viewport height (h-[90vh] / h-[88vh] /
* h-[75vh]) and carry `overflow-hidden` so the image panel stays inside the
* rounded section. On a short screen - an ordinary laptop at 1400x620, or a
* phone held in landscape - the headline and the call-to-action buttons are
* taller than that fixed height, so they are silently clipped: measured at
* 1400x620 the eyebrow began 12px above the top edge and the buttons sat 92px
* below the visible area, completely invisible.
*
* Turning the fixed height into a minimum lets the hero grow to fit instead.
* On a normal screen the content is shorter than the minimum, so nothing moves
* and the design is unchanged; on a short screen the section simply gets taller
* rather than swallowing its own content.
*
* These three classes are used only by the heroes, and this file loads after
* the compiled Tailwind, so the override applies without !important.
* ---------------------------------------------------------------------- */

.h-\[90vh\] {
	height: auto;
	min-height: 90vh;
}

.h-\[88vh\] {
	height: auto;
	min-height: 88vh;
}

.h-\[75vh\] {
	height: auto;
	min-height: 75vh;
}

/* -------------------------------------------------------------------------
* Gallery sliders (Slick).
*
* Slick ships its own layout CSS from the CDN; these rules only cover the
* gap between slides, the brand colours on the controls, and a sane look
* before the script has run - which is also what the block editor shows,
* since it renders the markup without initialising the carousel.
* ---------------------------------------------------------------------- */

.gf-slider:not(.slick-initialized) {
	display: flex;
	gap: 0.75rem;
	overflow: hidden;
}

.gf-slider:not(.slick-initialized) > .gf-slide {
	flex: 0 0 auto;
	width: 25%;
}

.gf-slider .slick-list {
	margin: 0 -0.375rem;
}

.gf-slider .slick-slide {
	padding: 0 0.375rem;
	height: auto;
}

/* Arrows sit just outside the track, in the brand green. */
.gf-slider .slick-prev,
.gf-slider .slick-next {
	width: 2.5rem;
	height: 2.5rem;
	z-index: 10;
}

.gf-slider .slick-prev {
	left: -2.25rem;
}

.gf-slider .slick-next {
	right: -2.25rem;
}

.gf-slider .slick-prev::before,
.gf-slider .slick-next::before {
	color: #6ab944;
	font-size: 2rem;
	opacity: 1;
}

@media (max-width: 1279px) {
	/* No room outside the container, so tuck them over the images. */
	.gf-slider .slick-prev {
		left: 0.25rem;
	}

	.gf-slider .slick-next {
		right: 0.25rem;
	}
}

.gf-slider .slick-dots {
	position: static;
	margin-top: 1.5rem;
}

.gf-slider .slick-dots li button::before {
	font-size: 0.6rem;
	color: #6ab944;
	opacity: 0.35;
}

.gf-slider .slick-dots li.slick-active button::before {
	color: #6ab944;
	opacity: 1;
}

/* On a dark band the default black arrow glyph would disappear. */
.gf-slider--dark .slick-prev::before,
.gf-slider--dark .slick-next::before {
	color: #ffffff;
}

/* -------------------------------------------------------------------------
* Hero typography.
*
* One source of truth for every hero on the site, whether it is rendered by
* template-parts/hero.php or built from blocks on a canvas page - both carry
* the .gf-hero hook.
*
*   h1  green page title        60 / 48 / 36 px
*   h2  white supporting line   30 / 24 px
*   p   supporting copy         18 / 16 px
*
* The markup still carries the design's Tailwind size utilities. Those live in
* Tailwind's @layer utilities and the rules below are unlayered, so these win
* on every page without needing !important.
* ---------------------------------------------------------------------- */

.gf-hero h1 {
	font-size: 36px;
	line-height: 1.05;
	margin: 0 0 1rem;
}

.gf-hero h2 {
	font-size: 24px;
	line-height: 1.3;
	max-width: 36rem;
	margin: 0 0 1.25rem;
}

.gf-hero p {
	font-size: 16px;
	line-height: 1.7;
	max-width: 36rem;
	margin: 0 0 1rem;
}

/* Tablet. */
@media (min-width: 768px) {
	.gf-hero h1 { font-size: 48px; }
	.gf-hero h2 { font-size: 30px; }
	.gf-hero p  { font-size: 18px; }
}

/* Desktop. */
@media (min-width: 1024px) {
	.gf-hero h1 { font-size: 60px; }
}

/* Buttons sit under the copy, not against it. */
.gf-hero p:last-of-type {
	margin-bottom: 1.5rem;
}

/*
* Contact page: the opening-hours column has no heading of its own, so an empty
* box stands in for the "Contact Information / Find Us" block opposite and keeps
* the two cards level on desktop. It used to hold the literal word "Spacer",
* which screen readers and heading audits picked up.
*/
.geefit-heading-spacer {
	height: 2.5rem;
}

/* ===========================================================================
 * Default typography for text the client types.
 *
 * Every piece of type in this design comes from a Tailwind utility class baked
 * into the markup (text-lg, font-bold, leading-relaxed, an inline Barlow). A
 * paragraph or heading typed into the editor carries none of those, so it fell
 * straight through to Tailwind's preflight - the system font stack, and an h2
 * reset to 1.25rem/500 - in the editor AND on the front end. That is the
 * "different font, different weight and size" the client reported, and why the
 * only way to get matching text was to paste classed markup in the HTML view.
 *
 * This file is already loaded in both places (wp_enqueue_style in inc/enqueue.php
 * for the front end, add_editor_style in inc/blocks.php for the editor canvas
 * and any TinyMCE field), so one set of rules here is one set of rules in both.
 *
 * Two safeguards mean no existing element changes:
 *
 *   1. Everything sits in @layer base - the same layer Tailwind's preflight
 *      uses, and below @layer utilities. A layered rule always loses to a later
 *      layer regardless of specificity, so every text-*, font-*, leading-* and
 *      bg-* class on the site still wins. These rules only reach elements that
 *      have no class for that property.
 *
 *   2. font-family and text-transform are the two properties this Tailwind
 *      build has no utility for on headings (the design sets them with an
 *      inline style and the `uppercase` class), so the layer alone cannot
 *      protect them. The :not([class*="font-"]) guard does: every designed
 *      heading carries font-bold or font-extrabold, a typed one carries only
 *      wp-block-heading.
 * ======================================================================== */
@layer base {

	/* The site's body font, from one place: front end, block editor, TinyMCE. */
	body {
		font-family: Poppins, sans-serif;
	}

	/* A typed heading gets the design's heading treatment, same as .geefit-entry. */
	h1:not([class*="font-"]),
	h2:not([class*="font-"]),
	h3:not([class*="font-"]),
	h4:not([class*="font-"]),
	h5:not([class*="font-"]),
	h6:not([class*="font-"]) {
		font-family: Barlow, sans-serif;
		font-weight: 800;
		text-transform: uppercase;
		line-height: 1.15;
	}

	h1 { font-size: 2.25rem; }
	h2 { font-size: 1.875rem; }
	h3 { font-size: 1.5rem; }
	h4 { font-size: 1.25rem; }
	h5 { font-size: 1.125rem; }
	h6 { font-size: 1rem; }

	/* Typed body copy reads like the design's copy (leading-relaxed). */
	p,
	li {
		line-height: 1.625;
	}

	/*
	 * Typed text inherits a readable colour from the section it sits in.
	 *
	 * Without this, a paragraph typed into the black hero was black on black -
	 * the client could not see what they had written. Each card matches its own
	 * rule, so a bg-white card inside a bg-black section goes back to black
	 * text on its own. The translucent variants (bg-white/10, bg-black/5) are
	 * separate class names and deliberately do not match.
	 */
	.bg-black,
	.bg-gray-900,
	.bg-neutral-800,
	.bg-neutral-900 {
		color: #fff;
	}

	.bg-white,
	.bg-gray-50,
	.bg-gray-100,
	.bg-gray-200 {
		color: #000;
	}
}
