/**
 * AGD Style Kit — visual consistency and the dark anchors.
 *
 * Written against what the live site actually renders, not against a guess.
 * The measurements that motivated each block are recorded next to it, because
 * "make it look nicer" is not something a future reader can check, whereas
 * "the header button is Poppins/6px and the page button is Roboto/3px" is.
 *
 * Everything is scoped so it can be switched off by deactivating the plugin.
 * Nothing here edits a page, a template or the theme.
 */

:root {
	--agd-blue: #1C75BC;
	--agd-blue-dark: #145E97;
	--agd-blue-tint: #EAF3FA;
	--agd-amber: #F5A623;
	--agd-amber-dark: #D98C0C;
	--agd-ink: #17191C;
	--agd-ink-2: #1F2328;
	--agd-body: #4B5563;
	--agd-line: #E4E8EC;
	--agd-mist: #F5F7FA;

	/* The dark anchor. Not pure black — a hair of blue keeps it from looking
	   like a rendering fault next to photography, and photographs of steel
	   doors sit better on it. */
	--agd-dark: #12171E;
	--agd-dark-2: #1A212B;
	--agd-dark-line: rgba(255, 255, 255, .12);

	--agd-radius: 10px;
	--agd-radius-lg: 16px;
	--agd-shadow: 0 2px 4px rgba(23, 25, 28, .04), 0 12px 28px rgba(23, 25, 28, .09);
	--agd-shadow-hi: 0 4px 8px rgba(23, 25, 28, .06), 0 20px 44px rgba(23, 25, 28, .14);

	--agd-font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
	--agd-font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ==================================================================
 * 1. One typeface for headings
 *
 * The theme sets --font-heading to Poppins and uses it for the nav and the
 * header buttons. Elementor's global kit sets Roboto, and every heading and
 * button placed on a page is an Elementor widget — so the site runs two
 * typefaces at once, splitting neatly down the line between the chrome and
 * the content. That is the "styles aren't consistent" feeling, and it is one
 * rule to fix.
 *
 * The permanent fix is Elementor → Site Settings → Global Fonts; this makes
 * it right today without waiting for that.
 * ================================================================== */

.agd-sk h1, .agd-sk h2, .agd-sk h3, .agd-sk h4, .agd-sk h5, .agd-sk h6,
.agd-sk .elementor-heading-title,
.agd-sk .elementor-button,
.agd-sk .elementor-icon-box-title,
.agd-sk .elementor-testimonial-name {
	font-family: var(--agd-font-head) !important;
	letter-spacing: -0.01em;
}

.agd-sk .elementor-heading-title { color: var(--agd-ink-2); }

/* A heading needs air above it and a tighter gap below, so it reads as
   belonging to what follows rather than floating between two things. */
.agd-sk .elementor-widget-heading { line-height: 1.18; }

/* ==================================================================
 * 2. One set of buttons
 *
 * Measured on the live page, there are four: amber/3px-radius/Roboto,
 * amber/6px/Poppins, blue-outline/2px-border, white-outline/2px — different
 * fonts, radii, padding and weights depending on whether the button came from
 * the theme or from Elementor. They are the most-repeated element on the site,
 * so the mismatch is doing the most damage per pixel.
 * ================================================================== */

.agd-sk .elementor-button,
.agd-sk .site-header .btn,
.agd-sk .header-cta {
	border-radius: var(--agd-radius) !important;
	padding: 15px 28px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: .005em;
	border-width: 2px !important;
	border-style: solid !important;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.agd-sk .elementor-button:hover,
.agd-sk .header-cta:hover {
	transform: translateY(-1px);
}

/* Primary — the amber one. Dark text on amber rather than white: white on
   #F5A623 is about 2:1 and fails contrast at this size, which matters on the
   button people are meant to press. */
.agd-sk .elementor-button:not(.elementor-button-link):not([class*="outline"]),
.agd-sk .elementor-button[class*="primary"] {
	box-shadow: 0 2px 0 var(--agd-amber-dark), 0 8px 20px rgba(245, 166, 35, .28);
}

/* The header pair are compact by design — they sit beside seven menu items and
   there is no room for full-size buttons. Without this the padding above blows
   them up and pushes the navigation onto two lines. */
.agd-sk .site-header .elementor-button,
.agd-sk .site-header .btn,
.agd-sk .site-header .header-cta {
	padding: 9px 16px !important;
	font-size: 13.5px !important;
	border-radius: 8px !important;
}

/* Seven items across a header is tight enough without labels breaking in the
   middle of "About Us". */
.agd-sk .primary-menu > li > a {
	white-space: nowrap;
}

.agd-sk .elementor-button:focus-visible,
.agd-sk .menu-toggle:focus-visible,
.agd-sk .primary-menu a:focus-visible {
	outline: 3px solid var(--agd-amber);
	outline-offset: 3px;
}

/* ==================================================================
 * 3. The service cards
 *
 * Four Elementor icon-box widgets sitting in thin 1px outlines on white, with
 * a small flat icon. They are the first thing under the hero and they carry no
 * weight at all. A tinted icon chip, a real shadow and a lift on hover give
 * them presence without adding a single image.
 * ================================================================== */

.agd-sk .elementor-widget-icon-box {
	height: 100%;
}

.agd-sk .elementor-widget-icon-box .elementor-icon-box-wrapper {
	height: 100%;
	padding: 26px 24px 28px;
	background: #FFFFFF;
	border: 1px solid var(--agd-line);
	border-radius: var(--agd-radius-lg);
	box-shadow: var(--agd-shadow);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.agd-sk .elementor-widget-icon-box:hover .elementor-icon-box-wrapper {
	transform: translateY(-4px);
	box-shadow: var(--agd-shadow-hi);
	border-color: #CFE0F0;
}

/* The icon gets a tinted disc behind it, which is what turns a small grey-blue
   glyph into something the eye lands on. */
.agd-sk .elementor-widget-icon-box .elementor-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 16px;
	color: var(--agd-blue) !important;
	background: var(--agd-blue-tint);
	border-radius: 14px;
}
/* Size only — no fill. Line icons are drawn with fill="none" and a stroke, and
   a stylesheet setting fill:currentColor beats that presentation attribute and
   floods every outline icon into a solid block. */
.agd-sk .elementor-widget-icon-box .elementor-icon svg,
.agd-sk .elementor-widget-icon-box .elementor-icon i {
	width: 28px;
	height: 28px;
	font-size: 26px;
}

.agd-sk .elementor-icon-box-title { margin-bottom: 6px; font-size: 1.06rem; }
.agd-sk .elementor-icon-box-description { color: var(--agd-body); font-size: .95rem; line-height: 1.6; }

/* Rotate the accent through the four cards so the row reads as a set rather
   than as the same card printed four times. */
.agd-sk .e-con > .elementor-widget-icon-box:nth-child(4n+2) .elementor-icon { background: #FFF4E0; color: var(--agd-amber-dark) !important; }
.agd-sk .e-con > .elementor-widget-icon-box:nth-child(4n+3) .elementor-icon { background: #E9F6EE; color: #1E7B45 !important; }
.agd-sk .e-con > .elementor-widget-icon-box:nth-child(4n+4) .elementor-icon { background: #F0EDFB; color: #5B45B8 !important; }

/* ==================================================================
 * 4. The review cards
 *
 * Three Elementor testimonial widgets. The avatars are all the same file —
 * placeholder.png, a grey silhouette — and the cards sit at different heights
 * because their quotes are different lengths, so the row looks unfinished.
 *
 * The avatar itself is replaced by reviews.js, which draws a coloured disc
 * carrying the reviewer's initials. This handles everything around it.
 * ================================================================== */

.agd-sk .elementor-widget-testimonial { height: 100%; }

.agd-sk .elementor-testimonial-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 26px 26px 22px;
	background: #FFFFFF;
	border: 1px solid var(--agd-line);
	border-radius: var(--agd-radius-lg);
	box-shadow: var(--agd-shadow);
}

/* An opening quote mark, drawn rather than typed, so the card reads as a
   quotation at a glance from across a room. */
.agd-sk .elementor-testimonial-wrapper::before {
	content: "";
	display: block;
	width: 34px;
	height: 26px;
	margin-bottom: 12px;
	background: var(--agd-blue);
	opacity: .18;
	-webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath d='M0 26V13C0 5.8 5.8 0 13 0v5.2A7.8 7.8 0 0 0 5.2 13H13v13H0Zm21 0V13C21 5.8 26.8 0 34 0v5.2A7.8 7.8 0 0 0 26.2 13H34v13H21Z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath d='M0 26V13C0 5.8 5.8 0 13 0v5.2A7.8 7.8 0 0 0 5.2 13H13v13H0Zm21 0V13C21 5.8 26.8 0 34 0v5.2A7.8 7.8 0 0 0 26.2 13H34v13H21Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.agd-sk .elementor-testimonial-content {
	flex: 1 1 auto;
	margin-bottom: 18px;
	color: var(--agd-ink-2);
	font-size: 1rem;
	line-height: 1.65;
}

/* Pushes the name block to the bottom of every card whatever the quote length,
   which is what makes a row of three read as level. */
.agd-sk .elementor-testimonial-meta {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--agd-line);
}

.agd-sk .elementor-testimonial-name { font-size: .98rem; font-weight: 700; color: var(--agd-ink-2); }
.agd-sk .elementor-testimonial-job { color: var(--agd-body); font-size: .85rem; }

/* Drawn by reviews.js. */
.agd-sk .agd-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	color: #FFFFFF;
	font-family: var(--agd-font-head);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: .02em;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(23, 25, 28, .18);
}

.agd-sk .agd-review-source {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 3px;
	color: var(--agd-body);
	font-size: .82rem;
}
.agd-sk .agd-review-source svg { width: 15px; height: 15px; flex-shrink: 0; }
.agd-sk .agd-stars { color: #FBBC05; letter-spacing: 1px; font-size: .9rem; }

/* ==================================================================
 * 5. Dark anchors
 *
 * Applied by class so they can be turned on band by band rather than all at
 * once. The plugin adds .agd-dark to the header and footer when the setting is
 * on; any Elementor container can be given the class by hand for a dark band
 * in the middle of a page.
 * ================================================================== */

.agd-sk .agd-dark,
.agd-sk .site-header.agd-dark,
.agd-sk .site-footer.agd-dark {
	background: var(--agd-dark) !important;
	color: #E7ECF2;
}

.agd-sk .agd-dark h1, .agd-sk .agd-dark h2, .agd-sk .agd-dark h3,
.agd-sk .agd-dark h4, .agd-sk .agd-dark h5, .agd-sk .agd-dark h6,
.agd-sk .agd-dark .elementor-heading-title,
.agd-sk .agd-dark .elementor-icon-box-title,
.agd-sk .agd-dark strong {
	color: #FFFFFF !important;
}

.agd-sk .agd-dark p,
.agd-sk .agd-dark li,
.agd-sk .agd-dark .elementor-icon-box-description,
.agd-sk .agd-dark .elementor-widget-text-editor {
	color: #B9C4D2 !important;
}

.agd-sk .agd-dark a:not(.elementor-button) { color: #FFFFFF; }
.agd-sk .agd-dark a:not(.elementor-button):hover { color: var(--agd-amber); }

.agd-sk .site-header.agd-dark { border-bottom-color: var(--agd-dark-line); }
.agd-sk .site-header.agd-dark .primary-menu > li > a { color: #E7ECF2; }
.agd-sk .site-header.agd-dark .primary-menu > li > a:hover,
.agd-sk .site-header.agd-dark .primary-menu > li.current-menu-item > a { color: #FFFFFF; }
.agd-sk .site-header.agd-dark .menu-toggle { border-color: var(--agd-dark-line); background: transparent; }
.agd-sk .site-header.agd-dark .menu-toggle__bar { background: #FFFFFF; }

/* The logo is blue and black artwork made for a white bar. Knocked to white it
   reads correctly on the dark header; left alone it sinks into it. This is why
   the dark header is a setting rather than a given — it is worth looking at
   before committing to it. */
.agd-sk .site-header.agd-dark .custom-logo {
	filter: brightness(0) invert(1);
}

/* On a phone the drawer is still a white panel, so its contents must not
   inherit the dark header's colours. */
@media (max-width: 1023px) {
	.agd-sk .site-header.agd-dark .primary-navigation { background: #FFFFFF; }
	.agd-sk .site-header.agd-dark .primary-menu > li > a { color: var(--agd-ink-2); }
	.agd-sk .site-header.agd-dark .primary-menu .sub-menu a { color: var(--agd-body); }
}

/* A dark band in the middle of a light page needs to look deliberate. This
   gives it a soft blue wash off one corner so it reads as designed rather than
   as a section that failed to load. */
.agd-sk .agd-dark.agd-dark--glow {
	background:
		radial-gradient(80% 120% at 15% 0%, rgba(28, 117, 188, .35) 0%, rgba(28, 117, 188, 0) 60%),
		var(--agd-dark) !important;
}

/* ==================================================================
 * 6. Trust strip
 *
 * Four short proof points on a dark band. Cheap to add, and it breaks up the
 * long run of white between the hero and the reviews that makes the page feel
 * flat however good the copy is.
 * ================================================================== */

.agd-sk .agd-trust {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px 16px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 34px 20px;
	text-align: center;
}
@media (min-width: 800px) { .agd-sk .agd-trust { grid-template-columns: repeat(4, 1fr); } }

.agd-sk .agd-trust-item { color: #B9C4D2; }
.agd-sk .agd-trust-figure {
	display: block;
	font-family: var(--agd-font-head);
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1.1;
	color: #FFFFFF;
}
.agd-sk .agd-trust-figure .agd-trust-unit { color: var(--agd-amber); }
.agd-sk .agd-trust-label { display: block; margin-top: 4px; font-size: .86rem; letter-spacing: .02em; }

/* ==================================================================
 * 7. Rhythm and images
 * ================================================================== */

/* Photographs carry the whole look on a site like this, so they get a
   consistent frame rather than each one doing its own thing. */
.agd-sk .elementor-widget-image img {
	border-radius: var(--agd-radius-lg);
}

.agd-sk .site-footer { border-top: 0; }

/* Long paragraphs set the full width of a container are hard going. */
.agd-sk .elementor-widget-text-editor p { max-width: 68ch; }

@media (prefers-reduced-motion: reduce) {
	.agd-sk .elementor-button,
	.agd-sk .elementor-widget-icon-box .elementor-icon-box-wrapper {
		transition: none !important;
	}
	.agd-sk .elementor-button:hover,
	.agd-sk .elementor-widget-icon-box:hover .elementor-icon-box-wrapper {
		transform: none !important;
	}
}
