/**
 * SGD Applied page template styles
 *
 * These styles are scoped to the `page-template-sgd-applied.php` template.
 * The template adds a `sgd-applied` class to the <body>, so prefix rules
 * with `body.sgd-applied` (or `.sgd-applied`) to keep them isolated to
 * this page only.
 *
 * Enqueued conditionally from inc/enqueue.php.
 */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&display=swap');

/* Add page-specific styles below */

/* Page background image */
body.sgd-applied {
	background-image: url('/wp-content/uploads/2026/10/sgd-applied-backup-1.webp');
	background-position: top right;
	background-size: 80%;
	background-repeat: no-repeat;
}

/* Body copy: Figtree light in brand dark teal */
body.sgd-applied,
body.sgd-applied p,
body.sgd-applied li,
body.sgd-applied .wyg {
	font-family: 'Figtree', sans-serif;
	font-weight: 300;
	color: #014751;
}

/* Gradient <strong>/<b>/<span> inside headings — this template only.
   The rest of the site uses the solid brand highlight colour. */
body.sgd-applied .wyg h1 strong,
body.sgd-applied .wyg h1 b,
body.sgd-applied .wyg h1 span,
body.sgd-applied .wyg h2 strong,
body.sgd-applied .wyg h2 b,
body.sgd-applied .wyg h2 span,
body.sgd-applied .wyg h3 strong,
body.sgd-applied .wyg h3 b,
body.sgd-applied .wyg h3 span,
body.sgd-applied .wyg h4 strong,
body.sgd-applied .wyg h4 b,
body.sgd-applied .wyg h4 span,
body.sgd-applied .wyg h5 strong,
body.sgd-applied .wyg h5 b,
body.sgd-applied .wyg h5 span,
body.sgd-applied .wyg h6 strong,
body.sgd-applied .wyg h6 b,
body.sgd-applied .wyg h6 span {
	background: linear-gradient(90deg, #014751 0%, #61d6c2 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Keep text white on dark sections (bg-teal-600 / .text-white) */
body.sgd-applied .bg-teal-600,
body.sgd-applied .bg-teal-600 p,
body.sgd-applied .bg-teal-600 li,
body.sgd-applied .bg-teal-600 .wyg,
body.sgd-applied .text-white,
body.sgd-applied .text-white p,
body.sgd-applied .text-white li,
body.sgd-applied .text-white .wyg {
	color: #fff;
}

/* Remove the bottom-right rounded corner from images on this template */
body.sgd-applied img,
body.sgd-applied .rounded-br-xl,
body.sgd-applied .rounded-br-3xl {
	border-bottom-right-radius: 0 !important;
}

/* Remove the top border on media added in the columns_content module */
body.sgd-applied .columns-content-boxed .col-box-icon,
body.sgd-applied section .border-t-8 {
	border-top: 0 !important;
}

/* Sections should be transparent by default on this template so the page
   background shows through. Explicit backgrounds (bg-teal-600, bg-grey,
   bg-highlight) chosen in the block settings are left untouched. */
body.sgd-applied section.bg-white {
	background-color: transparent !important;
}

/* Buttons — restyled for this template only.
   Overrides the site-wide .btn-primary look: no pill/background, dark teal
   bold label preceded by a circular teal arrow icon. */
body.sgd-applied .btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	margin: 0;
	color: #014751 !important;
	font-weight: 700;
	font-size: 0.9rem;
	line-height: 1.1;
	text-decoration: none;
	box-shadow: none !important;
}

/* Hide the default chevron icon that acfLink appends */
body.sgd-applied .btn-primary svg {
	display: none;
}

/* Circular arrow icon before the label */
body.sgd-applied .btn-primary::before {
	content: "";
	flex: 0 0 auto;
	width: 29px;
	height: 29px;
	background-image: url("data:image/svg+xml,%3Csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle%20cx='12'%20cy='12'%20r='12'%20fill='%2361D6C2'/%3E%3Cpath%20d='M17.3536%2012.3536C17.5488%2012.1583%2017.5488%2011.8417%2017.3536%2011.6464L14.1716%208.46447C13.9763%208.2692%2013.6597%208.2692%2013.4645%208.46447C13.2692%208.65973%2013.2692%208.97631%2013.4645%209.17157L16.2929%2012L13.4645%2014.8284C13.2692%2015.0237%2013.2692%2015.3403%2013.4645%2015.5355C13.6597%2015.7308%2013.9763%2015.7308%2014.1716%2015.5355L17.3536%2012.3536ZM6%2012V12.5H17V12V11.5H6V12Z'%20fill='%23014751'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 0.2s ease-in-out;
}

body.sgd-applied .btn-primary:hover::before {
	transform: translateX(4px);
}

/* ------------------------------------------------------------------ */
/* Case study single module (SGD styling)                             */
/* ------------------------------------------------------------------ */

/* Background image anchored to the bottom-left corner of the section */
body.sgd-applied .sgd-case-study {
	background-image: url('/wp-content/uploads/2026/09/sgd-cs-bkd.png');
	background-position: bottom left;
	background-repeat: no-repeat;
	background-size: 40% auto;
}

/* "Delivery Use Case" label overlaid on the top-left of the image */
body.sgd-applied .sgd-case-label {
	position: absolute;
	top: 1.5rem;
	left: 0;
	z-index: 10;
	background: #61d6c2;
	color: #014751;
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 0.75rem 1.25rem;
}

/* Category pills under the heading */
body.sgd-applied .sgd-case-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 0;
	margin: 0 0 1.5rem;
	list-style: none;
}

body.sgd-applied .sgd-case-categories li {
	border: 1px solid #61d6c2;
	border-radius: 999px;
	padding: 0.5rem 1.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #014751;
	list-style: none;
}

body.sgd-applied .sgd-case-categories li::before {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Header (masthead) scroll behaviour                                 */
/* ------------------------------------------------------------------ */

/* Transparent at the top of the page... */
body.sgd-applied .sgd-applied-masthead {
	background-color: transparent;
}

/* ...white background as soon as the page is scrolled */
body.sgd-applied .sgd-applied-masthead.is-scrolled {
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Nav links in dark green rather than white */
body.sgd-applied .sgd-applied-masthead nav a {
	color: #014751;
	font-weight: 700;
	position: relative;
}

/* Keep dark teal on hover */
body.sgd-applied .sgd-applied-masthead nav a:hover {
	color: #014751;
}

/* Animated underline that expands left -> right on hover */
body.sgd-applied .sgd-applied-masthead nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 1px;
	background-color: #014751;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

body.sgd-applied .sgd-applied-masthead nav a:hover::after {
	transform: scaleX(1);
}

/* Logo 1.5x larger */
body.sgd-applied .sgd-logo {
	width: 375px;
}
body.sgd-applied .sgd-logo svg {
	width: 205.5px; /* 137 * 1.5 */
	height: auto;
}

/* ------------------------------------------------------------------ */
/* Columns content boxed module                                       */
/* ------------------------------------------------------------------ */

/* Always white background; any selected background image sits on top */
body.sgd-applied .columns-content-boxed {
	background-color: #fff !important;
}

/* ------------------------------------------------------------------ */
/* Headings                                                           */
/* ------------------------------------------------------------------ */

/* H6: all-caps Inter Bold, 2px tracking, 14px, light teal */
body.sgd-applied h6,
body.sgd-applied .wyg h6,
body.sgd-applied .bg-teal-600 h6,
body.sgd-applied .bg-teal-600 .wyg h6,
body.sgd-applied .text-white h6,
body.sgd-applied .text-white .wyg h6 {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 14px;
	color: #61D6C2 !important;
}

/* <strong>/<b>/<span> in headings on a dark teal background:
   gradient white -> light teal (instead of dark teal -> light teal) */
body.sgd-applied .bg-teal-600 .wyg h1 strong,
body.sgd-applied .bg-teal-600 .wyg h1 b,
body.sgd-applied .bg-teal-600 .wyg h1 span,
body.sgd-applied .bg-teal-600 .wyg h2 strong,
body.sgd-applied .bg-teal-600 .wyg h2 b,
body.sgd-applied .bg-teal-600 .wyg h2 span,
body.sgd-applied .bg-teal-600 .wyg h3 strong,
body.sgd-applied .bg-teal-600 .wyg h3 b,
body.sgd-applied .bg-teal-600 .wyg h3 span,
body.sgd-applied .bg-teal-600 .wyg h4 strong,
body.sgd-applied .bg-teal-600 .wyg h4 b,
body.sgd-applied .bg-teal-600 .wyg h4 span,
body.sgd-applied .bg-teal-600 .wyg h5 strong,
body.sgd-applied .bg-teal-600 .wyg h5 b,
body.sgd-applied .bg-teal-600 .wyg h5 span,
body.sgd-applied .bg-teal-600 .wyg h6 strong,
body.sgd-applied .bg-teal-600 .wyg h6 b,
body.sgd-applied .bg-teal-600 .wyg h6 span {
	background: linear-gradient(90deg, #ffffff 0%, #61d6c2 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* ------------------------------------------------------------------ */
/* Dark teal columns section → vertical gradient                      */
/* ------------------------------------------------------------------ */
body.sgd-applied section.bg-teal-600 {
	background-color: #014751;
	background-image: linear-gradient(180deg, #002E35 0%, #014751 100%);
	border-bottom: 5px solid #61D6C2;
}

/* ------------------------------------------------------------------ */
/* Posts latest module                                                */
/* ------------------------------------------------------------------ */

/* Light grey background (section.posts-latest beats section.bg-white) */
body.sgd-applied section.posts-latest {
	background-color: #F2F2F2 !important;
	background-image: none !important;
}

/* Hide the "view all articles" link, leaving just the nav arrows */
body.sgd-applied .posts-latest .btn-primary {
	display: none !important;
}

/* ------------------------------------------------------------------ */
/* WYSIWYG                                                             */
/* ------------------------------------------------------------------ */

/* Horizontal rule */
body.sgd-applied .wyg hr {
	margin: 4rem 0 2rem;
	border-top: 1px solid #65d7c4;
}
body.sgd-applied .wyg hr::before {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Columns content module – wider gap between columns                 */
/* ------------------------------------------------------------------ */
/* Boxed module: tighter gap */
body.sgd-applied .columns-content-boxed .gap-10 {
	gap: 1.25rem; /* half the default 2.5rem (gap-10) */
}
/* Normal columns content module: wider gap */
body.sgd-applied .columns-content .gap-10 {
	gap: 5rem; /* double the default 2.5rem (gap-10) */
}

/* ------------------------------------------------------------------ */
/* Post single module                                                 */
/* ------------------------------------------------------------------ */
body.sgd-applied .sgd-post-single {
	background-color: #fff !important;
	background-image: url('/wp-content/uploads/2026/10/REPLACE-ME.png') !important;
	background-size: contain;
	background-position: bottom left;
	background-repeat: no-repeat;
}



