/*
 * DigiCow adjustments on top of the Agrion stylesheet.
 *
 * The template's own colours are already swapped to DigiCow navy and yellow
 * inside agrion.css (the :root custom properties). This file only covers the
 * places where real WordPress content differs in shape from the template's
 * static demo markup: Contact Form 7 output, logos of varying aspect ratio,
 * and the testimonial cards, which carry no portrait.
 */

/* ---------------------------------------------------------------- logos -- */


/* Partner logos arrive at assorted sizes; give them one optical height. */
.brand-one__img {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 90px;
	padding: 0 14px;
}

.brand-one__img img {
	max-height: 68px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}


/* ---------------------------------------------------------- testimonials -- */

/*
 * The quotes are anonymous, so the card carries no portrait. The circle keeps
 * the layout the template sets up and holds the quote mark on its own.
 */
.testimonial-one__client-img.dc-no-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: var(--agrion-base);
	position: relative;
}

.testimonial-one__client-img.dc-no-avatar .testimonial-one__quote {
	position: absolute;
	top: -6px;
	right: -10px;
}

.testimonial-one__text {
	min-height: 190px;
}

/* ------------------------------------------------- Contact Form 7 output -- */

/*
 * CF7 emits its own wrappers, so the template's .contact-one__input-box rules
 * never match. These restate them against the controls CF7 actually prints.
 */
.dc-cf7 .wpcf7-form .bt_bb_cf7_row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}

.dc-cf7 .wpcf7-form .bt_bb_cf7_element {
	flex: 1 1 100%;
	margin-bottom: 20px;
}

.dc-cf7 .wpcf7-form input[type="text"],
.dc-cf7 .wpcf7-form input[type="email"],
.dc-cf7 .wpcf7-form input[type="tel"],
.dc-cf7 .wpcf7-form textarea {
	width: 100%;
	height: 60px;
	background-color: var(--agrion-white);
	border: none;
	outline: none;
	font-size: 14px;
	color: var(--agrion-gray);
	font-weight: 500;
	padding-left: 30px;
	padding-right: 30px;
	border-radius: var(--agrion-bdr-radius);
	font-family: var(--agrion-font);
}

.dc-cf7 .wpcf7-form textarea {
	height: 130px;
	padding-top: 20px;
	resize: vertical;
}

.dc-cf7 .wpcf7-form input::placeholder,
.dc-cf7 .wpcf7-form textarea::placeholder {
	color: var(--agrion-gray);
	opacity: 1;
}

.dc-cf7 .wpcf7-form input[type="submit"] {
	position: relative;
	display: inline-flex;
	align-items: center;
	border: none;
	background-color: var(--agrion-base);
	color: var(--agrion-white);
	font-size: 16px;
	font-weight: 700;
	text-transform: capitalize;
	padding: 16px 40px;
	border-radius: 40px;
	font-family: var(--agrion-font);
	transition: all 500ms ease;
	cursor: pointer;
}

.dc-cf7 .wpcf7-form input[type="submit"]:hover {
	background-color: var(--agrion-primary);
	color: var(--agrion-black);
}

.dc-cf7 .wpcf7-spinner {
	margin: 0 0 0 12px;
}

.dc-cf7 .wpcf7-not-valid-tip {
	font-size: 13px;
	margin-top: 6px;
}

.dc-cf7 .wpcf7-response-output {
	margin: 18px 0 0;
	border-radius: 8px;
	font-size: 14px;
}

/* ------------------------------------------------------------- counters -- */

/* 700,000 is a wider number than the template's four digits allow for. */
@media (min-width: 1200px) {
	.counter-one__list {
		gap: 20px;
	}
}

.counter-one__text {
	max-width: 190px;
}

/* ----------------------------------------------------- WordPress admin bar */

body.admin-bar .main-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .main-header {
		top: 46px;
	}
}

/* ------------------------------------------------- photographs of any size -- */

/*
 * The template was built around a set of demo photographs cut to one aspect
 * ratio each. DigiCow's library is not uniform — portrait phone screenshots
 * sit next to wide landscape banners — so each frame is given a fixed shape
 * and the photograph is cropped to fill it. Without this the service circles
 * turn into ovals and the project grid's masonry layout cannot settle.
 */

.services-one__img img {
	width: 100%;
	height: 196px;
	object-fit: cover;
	display: block;
}

.project-one__img img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	display: block;
}

.healthy-food-one__img img {
	width: 100%;
	height: 520px;
	object-fit: cover;
	display: block;
	border-radius: var(--agrion-bdr-radius);
}

.about-one__img-one img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	display: block;
}

.about-one__img-two img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

.about-one__ceo-img img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 50%;
}

.blog-one__img img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}


/* -------------------------------------------------------- hero legibility -- */

/*
 * The template's ghosted headline sits over dark European farmland. DigiCow's
 * photographs are bright — open sky, white-washed milking parlours — and the
 * white type disappeared against them, so each slide gets a navy scrim.
 */
.main-slider .swiper-slide .image-layer::after {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, rgba(1, 29, 82, .72) 0%, rgba(1, 29, 82, .45) 55%, rgba(1, 29, 82, .30) 100%);
}

/* ------------------------------------------------------- header at 1200px+ -- */


/* Partner marks are county crests, not wordmarks: they need size and colour. */
.brand-one__img img {
	max-height: 80px;
	filter: none;
	opacity: 1;
}

.brand-one__single:hover .brand-one__img img {
	opacity: 1;
}

/* Four counters in one row: DigiCow's labels are longer than the template's. */
.counter-one__text {
	max-width: 150px;
	font-size: 15px;
	line-height: 1.5;
}


/* Four counters abreast: the third label is longer than the template's. */
@media (min-width: 992px) {
	.counter-one__list {
		display: flex;
		flex-wrap: nowrap;
		justify-content: space-between;
		gap: 10px;
	}

	.counter-one__single {
		flex: 1 1 0;
		min-width: 0;
	}

	.counter-one__text {
		max-width: none;
		font-size: 14px;
	}
}
