/*
Theme Name: SG Chem Oil
Theme URI: https://www.sgchemoil.com
Author: SG Chem Oil Pte. Ltd.
Description: Editable block theme for SG Chem Oil Pte. Ltd. – converted from the Lovable site. Includes a product catalogue (Products menu), a quotation/enquiry form with reference numbers (Enquiries menu), and fully editable pages, header and footer in the Site Editor.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sg-chem-oil
Tags: block-patterns, full-site-editing, business
*/

:root {
	--sgc-navy: #101D2D;
	--sgc-mist: #EEF1F4;
	--sgc-blue: #0E4C8A;
	--sgc-red: #E2252B;
	--sgc-light: #F5F7FA;
	--sgc-muted: #5B6573;
	--sgc-border: #DFE3E8;
	--sgc-input: #D5DAE1;
	--sgc-grad-brand: linear-gradient(120deg, #0E4C8A, #E2252B);
	--sgc-shadow-card: 0 1px 2px rgba(16, 29, 45, .06), 0 12px 32px -16px rgba(16, 29, 45, .22);
	--sgc-shadow-header: 0 1px 0 var(--sgc-border), 0 6px 24px -12px rgba(16, 29, 45, .25);
	--sgc-pad-x: var(--wp--style--root--padding-left, clamp(1.25rem, 4vw, 2rem));
	--sgc-i-mail: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Cpath%20d%3D%22m22%207-8.991%205.727a2%202%200%200%201-2.009%200L2%207%22%20%2F%3E%3Crect%20x%3D%222%22%20y%3D%224%22%20width%3D%2220%22%20height%3D%2216%22%20rx%3D%222%22%20%2F%3E%3C%2Fsvg%3E");
	--sgc-i-phone: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Cpath%20d%3D%22M13.832%2016.568a1%201%200%200%200%201.213-.303l.355-.465A2%202%200%200%201%2017%2015h3a2%202%200%200%201%202%202v3a2%202%200%200%201-2%202A18%2018%200%200%201%202%204a2%202%200%200%201%202-2h3a2%202%200%200%201%202%202v3a2%202%200%200%201-.8%201.6l-.468.351a1%201%200%200%200-.292%201.233%2014%2014%200%200%200%206.392%206.384%22%20%2F%3E%3C%2Fsvg%3E");
	--sgc-i-pin: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Cpath%20d%3D%22M20%2010c0%204.993-5.539%2010.193-7.399%2011.799a1%201%200%200%201-1.202%200C9.539%2020.193%204%2014.993%204%2010a8%208%200%200%201%2016%200%22%20%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%223%22%20%2F%3E%3C%2Fsvg%3E");
	--sgc-i-award: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Cpath%20d%3D%22m15.477%2012.89%201.515%208.526a.5.5%200%200%201-.81.47l-3.58-2.687a1%201%200%200%200-1.197%200l-3.586%202.686a.5.5%200%200%201-.81-.469l1.514-8.526%22%20%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%226%22%20%2F%3E%3C%2Fsvg%3E");
	--sgc-i-globe: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%3Cpath%20d%3D%22M12%202a14.5%2014.5%200%200%200%200%2020%2014.5%2014.5%200%200%200%200-20%22%20%2F%3E%3Cpath%20d%3D%22M2%2012h20%22%20%2F%3E%3C%2Fsvg%3E");
	--sgc-i-users: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Cpath%20d%3D%22M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2%22%20%2F%3E%3Cpath%20d%3D%22M16%203.128a4%204%200%200%201%200%207.744%22%20%2F%3E%3Cpath%20d%3D%22M22%2021v-2a4%204%200%200%200-3-3.87%22%20%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22%20%2F%3E%3C%2Fsvg%3E");
	--sgc-i-handshake: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Cpath%20d%3D%22m11%2017%202%202a1%201%200%201%200%203-3%22%20%2F%3E%3Cpath%20d%3D%22m14%2014%202.5%202.5a1%201%200%201%200%203-3l-3.88-3.88a3%203%200%200%200-4.24%200l-.88.88a1%201%200%201%201-3-3l2.81-2.81a5.79%205.79%200%200%201%207.06-.87l.47.28a2%202%200%200%200%201.42.25L21%204%22%20%2F%3E%3Cpath%20d%3D%22m21%203%201%2011h-2%22%20%2F%3E%3Cpath%20d%3D%22M3%203%202%2014l6.5%206.5a1%201%200%201%200%203-3%22%20%2F%3E%3Cpath%20d%3D%22M3%204h8%22%20%2F%3E%3C%2Fsvg%3E");
	--sgc-i-search: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Cpath%20d%3D%22m21%2021-4.34-4.34%22%20%2F%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228%22%20%2F%3E%3C%2Fsvg%3E");
	--sgc-i-shield: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Cpath%20d%3D%22M20%2013c0%205-3.5%207.5-7.66%208.95a1%201%200%200%201-.67-.01C7.5%2020.5%204%2018%204%2013V6a1%201%200%200%201%201-1c2%200%204.5-1.2%206.24-2.72a1.17%201.17%200%200%201%201.52%200C14.51%203.81%2017%205%2019%205a1%201%200%200%201%201%201z%22%20%2F%3E%3Cpath%20d%3D%22m9%2012%202%202%204-4%22%20%2F%3E%3C%2Fsvg%3E");
	--sgc-i-check: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%3Cpath%20d%3D%22m16%209-5.5%205.5L8%2012%22%20%2F%3E%3C%2Fsvg%3E");
	--sgc-i-flask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Cpath%20d%3D%22M14%202v6a2%202%200%200%200%20.245.96l5.51%2010.08A2%202%200%200%201%2018%2022H6a2%202%200%200%201-1.755-2.96l5.51-10.08A2%202%200%200%200%2010%208V2%22%20%2F%3E%3Cpath%20d%3D%22M6.453%2015h11.094%22%20%2F%3E%3Cpath%20d%3D%22M8.5%202h7%22%20%2F%3E%3C%2Fsvg%3E");
	--sgc-i-droplets: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Cpath%20d%3D%22M7%2016.3c2.2%200%204-1.83%204-4.05%200-1.16-.57-2.26-1.71-3.19S7.29%206.75%207%205.3c-.29%201.45-1.14%202.84-2.29%203.76S3%2011.1%203%2012.25c0%202.22%201.8%204.05%204%204.05z%22%20%2F%3E%3Cpath%20d%3D%22M12.56%206.6A10.97%2010.97%200%200%200%2014%203.02c.5%202.5%202%204.9%204%206.5s3%203.5%203%205.5a6.98%206.98%200%200%201-11.91%204.97%22%20%2F%3E%3C%2Fsvg%3E");
	--sgc-i-arrow: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Cpath%20d%3D%22M5%2012h14%22%20%2F%3E%3Cpath%20d%3D%22m12%205%207%207-7%207%22%20%2F%3E%3C%2Fsvg%3E");
	--sgc-i-chevron: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Cpath%20d%3D%22m9%2018%206-6-6-6%22%20%2F%3E%3C%2Fsvg%3E");
}

/* ---------- Base / layout ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
body .sgc-main { margin: 0; }
body .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
@media (min-width: 601px) { body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); } }
.sgc-container { width: 100%; max-width: calc(1280px + 2 * var(--sgc-pad-x)); margin-inline: auto; padding-inline: var(--sgc-pad-x); box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* Constrained-layout children that must stay left aligned */
body hr.wp-block-separator.sgc-rule { margin-left: 0 !important; margin-right: auto !important; }
body .is-layout-constrained > hr.wp-block-separator.sgc-rule,
body .is-layout-constrained > p.sgc-lead,
body .is-layout-constrained > p.sgc-maxw { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1280px)) / 2)) !important; margin-right: auto !important; }

/* ---------- Typography helpers ---------- */
body .sgc-eyebrow {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
	color: var(--sgc-red); margin-block: 0;
}
body .sgc-eyebrow + h1, body .sgc-eyebrow + h2, body .sgc-eyebrow + .wp-block-heading { margin-top: 1rem; }
body hr.wp-block-separator.sgc-rule {
	border: 0; height: 3px; width: 3.5rem; max-width: 3.5rem; background: var(--sgc-grad-brand);
	opacity: 1; margin-top: 1.5rem; margin-bottom: 0;
}
body hr.sgc-rule + p { margin-top: 1.5rem; }
.sgc-muted { color: var(--sgc-muted); line-height: 1.7; }
.sgc-soft { color: rgba(238, 241, 244, .8); }
.sgc-small { font-size: .875rem; }
body p.sgc-lead { font-size: 1.125rem; max-width: 42rem; color: rgba(238, 241, 244, .75); }
body p.sgc-maxw { max-width: 42rem; }
.sgc-tagline { font-family: var(--wp--preset--font-family--montserrat); font-weight: 700; font-size: 1.125rem; color: var(--sgc-blue); }
.has-navy-background-color h1, .has-navy-background-color h2, .has-navy-background-color h3,
.wp-block-cover h1, .wp-block-cover h2, .wp-block-cover h3 { color: #fff; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .2s, color .2s, border-color .2s; text-decoration: none; }
.wp-block-button.is-style-quote .wp-block-button__link,
.sgc-btn-quote {
	background: var(--sgc-red); color: #fff;
	font-family: var(--wp--preset--font-family--montserrat); font-weight: 700;
	text-transform: uppercase; letter-spacing: .1em; box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.wp-block-button.is-style-quote .wp-block-button__link:hover,
.sgc-btn-quote:hover { background: #C81E24; color: #fff; }
.wp-block-button.is-style-hero-outline .wp-block-button__link {
	background: transparent; color: var(--sgc-mist); border: 1px solid rgba(238, 241, 244, .4);
}
.wp-block-button.is-style-hero-outline .wp-block-button__link:hover { background: rgba(238, 241, 244, .1); color: #fff; }
.wp-block-button.is-style-outline-dark .wp-block-button__link,
.sgc-btn-outline {
	background: #fff; color: var(--sgc-navy); border: 1px solid var(--sgc-input);
}
.wp-block-button.is-style-outline-dark .wp-block-button__link:hover,
.sgc-btn-outline:hover { background: var(--sgc-red); border-color: var(--sgc-red); color: #fff; }
.sgc-btn-sm { padding: .55rem .9rem !important; font-size: .75rem !important; }
body .sgc-hero-btns, body .sgc-section .wp-block-buttons { margin-top: 2rem; }
body .sgc-hero-btns { margin-top: 2.5rem; gap: .75rem; }
.sgc-arrow-link a, .sgc-arrow-text {
	display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none;
}
.sgc-arrow-link a::after, .sgc-arrow-text::after {
	content: ""; width: 1rem; height: 1rem; background: currentColor;
	-webkit-mask: var(--sgc-i-arrow) center / contain no-repeat; mask: var(--sgc-i-arrow) center / contain no-repeat;
}
.sgc-arrow-link a:hover { text-decoration: underline; }

/* ---------- Icons ---------- */
.sgc-icon-mail { --sgc-icon: var(--sgc-i-mail); }
.sgc-icon-phone { --sgc-icon: var(--sgc-i-phone); }
.sgc-icon-pin { --sgc-icon: var(--sgc-i-pin); }
.sgc-icon-award { --sgc-icon: var(--sgc-i-award); }
.sgc-icon-globe { --sgc-icon: var(--sgc-i-globe); }
.sgc-icon-users { --sgc-icon: var(--sgc-i-users); }
.sgc-icon-handshake { --sgc-icon: var(--sgc-i-handshake); }
.sgc-icon-search { --sgc-icon: var(--sgc-i-search); }
.sgc-icon-shield { --sgc-icon: var(--sgc-i-shield); }
.sgc-icon-flask { --sgc-icon: var(--sgc-i-flask); }
.sgc-icon-droplets { --sgc-icon: var(--sgc-i-droplets); }
.sgc-ic { display: flex; align-items: flex-start; gap: .75rem; }
.sgc-ic::before, .sgc-strength::before, .sgc-portfolio-card::before {
	content: ""; flex: none; display: block; background: var(--sgc-red);
	-webkit-mask: var(--sgc-icon) center / contain no-repeat; mask: var(--sgc-icon) center / contain no-repeat;
}
.sgc-ic::before { width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.sgc-ic a { color: inherit; text-decoration: none; }
.sgc-ic a:hover { color: var(--sgc-blue); }

/* ---------- Header ---------- */
.sgc-header { background: #fff; box-shadow: var(--sgc-shadow-header); }
body .sgc-topbar, body .sgc-mainbar { padding-top: 0; padding-bottom: 0; }
body .sgc-footer, body .sgc-brand-strip { padding: 0; }
body .sgc-header > * { margin-block: 0; }
.sgc-topbar { font-size: .75rem; }
.sgc-topbar-inner { min-height: 2.25rem; gap: 1.5rem !important; }
.sgc-topbar p { margin: 0; align-items: center; gap: .5rem; }
.sgc-topbar .sgc-ic::before { width: .875rem; height: .875rem; margin: 0; background: currentColor; }
.sgc-topbar a:hover { color: #fff; }
@media (max-width: 767px) { .sgc-topbar { display: none; } }
.sgc-mainbar-inner { min-height: 4.5rem; padding-block: .75rem; gap: 1.5rem; }
.sgc-brand { gap: .75rem; flex-shrink: 0; }
.sgc-brand .wp-block-site-logo img, .sgc-footer-logo img { width: auto !important; max-height: 56px; }
@media (max-width: 767px) { .sgc-brand .wp-block-site-logo img { max-height: 48px; } }
.sgc-brand:has(.wp-block-site-logo) .wp-block-site-title { display: none; }
.sgc-brand .wp-block-site-title { margin: 0; font-family: var(--wp--preset--font-family--montserrat); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.sgc-brand .wp-block-site-title a { color: var(--sgc-navy); text-decoration: none; }
.sgc-nav-wrap { gap: 1rem; }
.sgc-nav .wp-block-navigation__container { gap: .25rem; }
.sgc-nav .wp-block-navigation-item__content {
	position: relative; padding: .5rem .75rem; font-family: var(--wp--preset--font-family--montserrat);
	font-size: .875rem; font-weight: 600; color: rgba(16, 29, 45, .8); text-decoration: none;
}
.sgc-nav .wp-block-navigation-item__content:hover { color: var(--sgc-blue); }
.sgc-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--sgc-blue); }
.sgc-nav:not(.is-menu-open) .current-menu-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -2px; height: 2px; background: var(--sgc-red);
}
.sgc-nav .wp-block-navigation__responsive-container.is-menu-open { background: #fff; padding: 2rem var(--sgc-pad-x); }
.sgc-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.125rem; padding: .75rem 0; }
.sgc-nav .is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; }
.sgc-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--sgc-border); }
@media (max-width: 1100px) { .sgc-nav .wp-block-navigation-item__content { padding-inline: .5rem; } }
@media (max-width: 900px) { body .sgc-header-cta { display: none; } }

/* ---------- Sections ---------- */
.sgc-section h2 + .wp-block-group, .sgc-section h2 + p, .sgc-section p + .wp-block-group { margin-top: 2.5rem; }
.sgc-section h2 + p.sgc-maxw { margin-top: 1rem; }
body .sgc-section p.sgc-maxw + .wp-block-group { margin-top: 2.5rem; }
.sgc-page-hero h1 { margin-bottom: 0; }
.wp-block-cover.alignfull { padding-left: var(--sgc-pad-x); padding-right: var(--sgc-pad-x); }
body .wp-block-cover .wp-block-cover__inner-container > * { margin-block-start: 0; }
body .wp-block-cover .wp-block-cover__inner-container > * + * { margin-block-start: 1.25rem; }

/* Hero */
.sgc-hero { color: var(--sgc-mist); }
body .wp-block-cover.sgc-hero.has-custom-content-position > .wp-block-cover__inner-container { width: 100% !important; max-width: 1280px; margin-left: auto !important; margin-right: auto !important; }
body .sgc-hero h1.sgc-hero-title { font-size: clamp(2.25rem, 5.5vw, 3.75rem); line-height: 1.08; margin-top: 1.25rem; }
body .sgc-hero hr.sgc-rule { margin-top: 1.75rem; }
body .sgc-hero .sgc-hero-lead { margin-top: 1.75rem; font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: rgba(238, 241, 244, .8); max-width: 42rem; }
.sgc-fade-up { animation: sgc-fade-up .8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sgc-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sgc-fade-up { animation: none; } html { scroll-behavior: auto; } }

/* Split (text + image) */
body .wp-block-columns.sgc-split { gap: 3rem; }
.sgc-split .wp-block-column > * { margin-block-start: 0; }
.sgc-split .wp-block-column > * + * { margin-block-start: 1.5rem; }
.sgc-split .wp-block-column > .sgc-eyebrow + * { margin-block-start: 1rem; }
.sgc-shadow-img { margin: 0; }
.sgc-shadow-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--sgc-shadow-card); }

/* Business segments */
body .sgc-seg-grid { gap: 1.5rem; }
body .wp-block-cover.sgc-seg-card { min-height: 0 !important; aspect-ratio: 4 / 3; padding: 1.5rem; overflow: hidden; margin: 0; }
.sgc-seg-card .wp-block-cover__image-background { transition: transform .7s ease; }
.sgc-seg-card:hover .wp-block-cover__image-background { transform: scale(1.05); }
.sgc-seg-card .wp-block-cover__inner-container { width: 100%; }
.sgc-seg-card .wp-block-cover__inner-container > * { position: relative; z-index: 2; }
body .sgc-seg-card hr.sgc-rule { margin: 0 0 1rem; }
body .sgc-seg-card h3 { font-size: 1.25rem; margin: 0; }
.sgc-seg-card h3 a { color: #fff; text-decoration: none; }
.sgc-seg-card h3 a::after { content: ""; position: absolute; inset: -100vh -100vw; z-index: 3; }
body .sgc-seg-card .sgc-arrow-text { margin-top: .5rem; font-size: .875rem; font-weight: 500; color: rgba(238, 241, 244, .8); }

/* Strengths */
body .sgc-strengths.is-layout-grid { gap: 1px; background: var(--sgc-border); border: 1px solid var(--sgc-border); }
.sgc-strength { background: #fff; padding: 2rem; margin: 0 !important; }
.sgc-strength::before { width: 2rem; height: 2rem; }
.sgc-strength h3 { margin: 1.25rem 0 0; }
.sgc-strength p { margin: .5rem 0 0; }

/* Industries tiles */
body .sgc-tiles.is-layout-grid { gap: 1rem; }
body .sgc-tiles p.sgc-tile {
	margin: 0; padding: 1.25rem; border: 1px solid rgba(238, 241, 244, .2); background: rgba(16, 29, 45, .6);
	backdrop-filter: blur(4px); font-family: var(--wp--preset--font-family--montserrat); font-weight: 600; color: var(--sgc-mist);
}
@media (max-width: 600px) { body .sgc-tiles.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sgc-cover-section { color: var(--sgc-mist); }
.sgc-cover-section .wp-block-cover__image-background { opacity: 1; }

/* Steps */
body .sgc-steps.is-layout-grid { gap: 2rem; }
.sgc-step { border-top: 2px solid var(--sgc-blue); padding-top: 1.5rem; margin: 0 !important; }
.sgc-step p.sgc-step-num { margin: 0; font-family: var(--wp--preset--font-family--montserrat); font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--sgc-red); }
.sgc-step h3 { margin: .75rem 0 0; }
.sgc-step p:not(.sgc-step-num) { margin: .5rem 0 0; }

/* CTA band */
.sgc-cta-inner { gap: 1.5rem; }
.sgc-cta h2 { color: #fff; font-size: 1.875rem; margin: 0; }
.sgc-cta .sgc-cta-sub { margin: .75rem 0 0; color: rgba(255, 255, 255, .85); }
body .sgc-cta .wp-block-buttons { margin: 0; }
.sgc-cta .is-style-hero-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* About */
body .sgc-portfolio.is-layout-grid { gap: 1.5rem; }
.sgc-portfolio-card { background: #fff; border-top: 4px solid var(--sgc-red); padding: 2rem; box-shadow: var(--sgc-shadow-card); margin: 0 !important; }
.sgc-portfolio-card::before { width: 2.25rem; height: 2.25rem; background: var(--sgc-blue); }
.sgc-portfolio-card h3 { font-size: 1.25rem; margin: 1rem 0 0; }
ul.sgc-checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; }
ul.sgc-checklist li { position: relative; padding-left: 1.75rem; color: var(--sgc-muted); }
ul.sgc-checklist li + li { margin-top: .625rem; }
ul.sgc-checklist li::before {
	content: ""; position: absolute; left: 0; top: .2rem; width: 1rem; height: 1rem; background: var(--sgc-red);
	-webkit-mask: var(--sgc-i-check) center / contain no-repeat; mask: var(--sgc-i-check) center / contain no-repeat;
}
ul.sgc-checklist-boxed { margin-top: 0; }
ul.sgc-checklist-boxed li {
	color: var(--sgc-mist); padding: 1rem 1rem 1rem 2.75rem; border: 1px solid rgba(238, 241, 244, .15);
	background: rgba(16, 29, 45, .6); backdrop-filter: blur(4px);
}
ul.sgc-checklist-boxed li + li { margin-top: .75rem; }
ul.sgc-checklist-boxed li::before { left: 1rem; top: 1.1rem; width: 1.25rem; height: 1.25rem; }
.sgc-centered .sgc-eyebrow { text-align: center; }
body .sgc-centered .wp-block-buttons { margin-top: 2rem; }

/* Contact */
body .wp-block-columns.sgc-contact-cols { gap: 3rem; }
.sgc-contact-cols .wp-block-column > * { margin-block-start: 0; }
.sgc-contact-cols .wp-block-column > * + * { margin-block-start: 1.5rem; }
h2.sgc-h-sm { font-size: 1.25rem; }
h2.sgc-h-md { font-size: 1.5rem; }
.sgc-map { display: block; width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--sgc-border); }

/* 404 */
h1.sgc-404 { font-size: 4.5rem; margin: 0; }

/* ---------- Footer ---------- */
.sgc-footer { font-size: .875rem; }
body .sgc-footer > * { margin-block: 0; }
.sgc-brand-strip { height: 4px; min-height: 4px; background: var(--sgc-grad-brand); }
body .wp-block-columns.sgc-footer-cols { gap: 2.5rem; }
@media (min-width: 782px) and (max-width: 1023px) {
	body .wp-block-columns.sgc-footer-cols { flex-wrap: wrap !important; }
	body .sgc-footer-cols > .wp-block-column { flex: 0 0 calc(50% - 1.25rem) !important; }
}
.sgc-footer-cols .wp-block-column > * { margin-block-start: 0; }
.sgc-footer-cols .wp-block-column > * + * { margin-block-start: 1.25rem; }
.sgc-footer-logo { display: inline-block; background: #fff; padding: .5rem; border-radius: 2px; }
.sgc-footer-text, .sgc-footer-list, .sgc-footer-nav { color: rgba(238, 241, 244, .7); line-height: 1.7; }
.sgc-footer .sgc-ic::before { width: 1rem; height: 1rem; margin-top: .25rem; }
.sgc-footer .sgc-ic + .sgc-ic { margin-top: 1rem; }
.sgc-footer a { color: inherit; text-decoration: none; }
.sgc-footer a:hover { color: #fff; }
h3.sgc-footer-h { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: #fff; }
ul.sgc-footer-list { list-style: none; padding: 0; }
ul.sgc-footer-list li + li { margin-top: .625rem; }
.sgc-footer-nav .wp-block-navigation__container { gap: .625rem; }
.sgc-footer-nav .wp-block-navigation-item__content { color: rgba(238, 241, 244, .7); }
.sgc-footer-nav .wp-block-navigation-item__content:hover { color: #fff; }
.sgc-footer-bottom { border-top: 1px solid rgba(238, 241, 244, .1); font-size: .75rem; color: rgba(238, 241, 244, .6); }
.sgc-footer-bottom p { margin: 0; }
.sgc-footer-bottom-inner { gap: .75rem; }

/* ---------- Product catalogue (rendered by PHP) ---------- */
.sgc-dark { background: var(--sgc-navy); color: var(--sgc-mist); }
.sgc-dark h1 { color: #fff; margin: 1rem 0 0; }
.sgc-dark .sgc-rule-el { display: block; height: 3px; width: 3.5rem; background: var(--sgc-grad-brand); margin-top: 1.5rem; }
.sgc-dark .sgc-lead-el { margin: 1.5rem 0 0; font-size: 1.125rem; max-width: 42rem; color: rgba(238, 241, 244, .75); }
.sgc-pad-hero { padding-block: 4.5rem; }
.sgc-pad { padding-block: 3rem 4.5rem; }
.sgc-search { display: flex; gap: .5rem; max-width: 42rem; margin-top: 2rem; }
.sgc-search-field { position: relative; flex: 1; }
.sgc-search-field::before {
	content: ""; position: absolute; left: .85rem; top: 50%; width: 1rem; height: 1rem; transform: translateY(-50%); background: var(--sgc-muted);
	-webkit-mask: var(--sgc-i-search) center / contain no-repeat; mask: var(--sgc-i-search) center / contain no-repeat;
}
.sgc-search input { width: 100%; height: 3rem; padding: 0 1rem 0 2.6rem; border: 1px solid var(--sgc-input); border-radius: 4px; font: inherit; color: var(--sgc-navy); background: #fff; box-sizing: border-box; }
.sgc-search button { height: 3rem; border: 0; border-radius: 4px; padding: 0 1.75rem; cursor: pointer; font-size: .875rem; }
.sgc-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.sgc-chip { border: 1px solid var(--sgc-border); padding: .5rem 1rem; font-size: .875rem; font-weight: 600; color: var(--sgc-navy); text-decoration: none; }
.sgc-chip:hover { border-color: var(--sgc-blue); color: var(--sgc-navy); }
.sgc-chip.is-active { background: var(--sgc-blue); border-color: var(--sgc-blue); color: #fff; }
.sgc-results-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; font-size: .875rem; color: var(--sgc-muted); }
.sgc-results-bar p { margin: 0; }
.sgc-results-bar a { font-weight: 600; text-decoration: none; }
.sgc-pgrid { display: grid; gap: 1.5rem; margin-top: 2rem; grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); }
.sgc-pcard { display: flex; flex-direction: column; border: 1px solid var(--sgc-border); background: #fff; box-shadow: var(--sgc-shadow-card); transition: transform .2s; }
.sgc-pcard:hover { transform: translateY(-4px); }
.sgc-pcard > a { display: block; }
.sgc-search > * { margin: 0; }
.sgc-pimg { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sgc-pimg--empty { display: flex; align-items: center; justify-content: center; background: var(--sgc-grad-brand); }
.sgc-pimg--empty::before {
	content: ""; width: 3rem; height: 3rem; background: rgba(255, 255, 255, .8);
	-webkit-mask: var(--sgc-i-flask) center / contain no-repeat; mask: var(--sgc-i-flask) center / contain no-repeat;
}
.sgc-pcard-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.sgc-pcard-body h3 { margin: .5rem 0 0; font-size: 1.125rem; }
.sgc-pcard-body h3 a { color: var(--sgc-navy); text-decoration: none; }
.sgc-pcard-body .sgc-excerpt { margin: .5rem 0 0; font-size: .875rem; color: var(--sgc-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sgc-pcard-actions { display: flex; gap: .5rem; margin-top: auto; padding-top: 1.5rem; flex-wrap: wrap; }
.sgc-empty { margin-top: 2rem; border: 1px dashed var(--sgc-border); background: var(--sgc-light); padding: 3rem; text-align: center; }
.sgc-empty h2 { font-size: 1.25rem; margin: 0; }
.sgc-empty p { max-width: 32rem; margin: .5rem auto 1.5rem; color: var(--sgc-muted); }
.sgc-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.sgc-pages .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .5rem; border: 1px solid var(--sgc-border); font-size: .875rem; font-weight: 600; color: var(--sgc-navy); text-decoration: none; box-sizing: border-box; }
.sgc-pages .page-numbers.current { background: var(--sgc-blue); border-color: var(--sgc-blue); color: #fff; }
.sgc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .875rem; color: var(--sgc-muted); }
.sgc-crumbs a { color: var(--sgc-muted); text-decoration: none; }
.sgc-crumbs a:hover { color: var(--sgc-blue); }
.sgc-crumbs .sgc-sep { width: .875rem; height: .875rem; background: currentColor; -webkit-mask: var(--sgc-i-chevron) center / contain no-repeat; mask: var(--sgc-i-chevron) center / contain no-repeat; }
.sgc-crumbs .is-current { color: var(--sgc-navy); }
.sgc-psingle { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 1024px) { .sgc-psingle { grid-template-columns: 1fr 1fr; } }
.sgc-psingle h1 { margin: .75rem 0 0; font-size: clamp(1.875rem, 3.5vw, 2.25rem); }
.sgc-psingle .sgc-rule-el { display: block; height: 3px; width: 3.5rem; background: var(--sgc-grad-brand); margin-top: 1.25rem; }
.sgc-psingle .sgc-short { margin-top: 1.25rem; font-size: 1.125rem; color: var(--sgc-muted); }
.sgc-psingle .wp-block-button { margin-top: 2rem; }
.sgc-overview { margin-top: 3.5rem; max-width: 48rem; }
.sgc-overview h2, .sgc-info h2 { font-size: 1.5rem; font-weight: 700; }
.sgc-overview-body { margin-top: 1rem; color: var(--sgc-muted); line-height: 1.7; }
.sgc-info { margin-top: 3rem; }
.sgc-info dl { margin: 1.25rem 0 0; border: 1px solid var(--sgc-border); }
.sgc-info dl > div { display: grid; gap: .25rem; padding: 1rem; }
.sgc-info dl > div + div { border-top: 1px solid var(--sgc-border); }
@media (min-width: 640px) { .sgc-info dl > div { grid-template-columns: 1fr 2fr; } }
.sgc-info dt { font-weight: 600; }
.sgc-info dd { margin: 0; color: var(--sgc-muted); white-space: pre-line; }
.sgc-info .sgc-na { padding: 1rem; margin: 0; color: var(--sgc-muted); }
@media (max-width: 600px) { .sgc-search { flex-direction: column; } }

/* ---------- Enquiry form ---------- */
.sgc-form { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .sgc-form { grid-template-columns: 1fr 1fr; } }
.sgc-field { display: flex; flex-direction: column; gap: .375rem; }
.sgc-field--full { grid-column: 1 / -1; }
.sgc-field label { font-size: .875rem; font-weight: 600; }
.sgc-req { color: var(--sgc-red); }
.sgc-field input, .sgc-field textarea {
	width: 100%; box-sizing: border-box; border: 1px solid var(--sgc-input); border-radius: 4px; background: #fff;
	font: inherit; font-size: .9375rem; color: var(--sgc-navy); padding: .6rem .75rem;
}
.sgc-field input { height: 2.75rem; }
.sgc-field input:focus, .sgc-field textarea:focus, .sgc-search input:focus { outline: 2px solid var(--sgc-blue); outline-offset: 0; border-color: var(--sgc-blue); }
.sgc-field.has-error input, .sgc-field.has-error textarea { border-color: #C81E1E; }
.sgc-err { margin: 0; font-size: .75rem; color: #C81E1E; }
.sgc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sgc-consent { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; color: var(--sgc-muted); font-weight: 400 !important; }
.sgc-consent input { width: 1rem; height: 1rem; margin-top: .2rem; accent-color: var(--sgc-blue); flex: none; }
.sgc-form button.wp-block-button__link { border: 0; cursor: pointer; }
.sgc-alert { padding: 1rem; border: 1px solid #F3C2C2; background: #FDF2F2; color: #9B1C1C; font-size: .875rem; }
.sgc-success { border: 1px solid var(--sgc-border); background: #fff; padding: 2rem; text-align: center; box-shadow: var(--sgc-shadow-card); }
.sgc-success::before {
	content: ""; display: block; width: 3rem; height: 3rem; margin: 0 auto; background: var(--sgc-blue);
	-webkit-mask: var(--sgc-i-check) center / contain no-repeat; mask: var(--sgc-i-check) center / contain no-repeat;
}
.sgc-success h3 { font-size: 1.5rem; margin: 1rem 0 0; }
.sgc-success p { color: var(--sgc-muted); margin: .75rem 0 0; }
.sgc-success .sgc-ref { font-family: var(--wp--preset--font-family--montserrat); font-size: 1.5rem; font-weight: 800; color: var(--sgc-red); margin-top: .25rem; }

/* Focus visibility */
a:focus-visible, button:focus-visible, .wp-block-button__link:focus-visible { outline: 2px solid var(--sgc-blue); outline-offset: 2px; }
