/* ==========================================================================
   Sai Green theme – tokens, base, header, footer.
   Page sections are styled by the Sai Green Elements plugin.
   ========================================================================== */

:root {
	--sg-navy: #061f3d;
	--sg-navy-text: #0f3557;
	--sg-green: #22825b;
	--sg-green-bright: #1a9a5a;
	--sg-teal: #058670;
	--sg-orange: #ff8502;
	--sg-blue: #045d97;
	--sg-bg-light: #f4f8fb;
	--sg-text: #1f2937;
	--sg-text-muted: #5b6676;
	--sg-border: #e3e8ee;
	--sg-white: #fff;
	--sg-gradient: linear-gradient(90deg, var(--sg-teal) 0%, var(--sg-blue) 100%);

	--sg-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--sg-container: 1248px;
	--sg-gutter: 24px;
	--sg-radius: 12px;
	--sg-radius-lg: 24px;
	--sg-shadow: 0 6px 24px rgba(6, 31, 61, 0.08);
	--sg-header-h: 87px;
}

/* Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--sg-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--sg-text);
	background: var(--sg-white);
	-webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; }
img { height: auto; }

a { color: var(--sg-green); text-decoration: none; }
a:hover { color: var(--sg-teal); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sg-orange); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { color: var(--sg-navy-text); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.sg-skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--sg-navy); color: #fff; padding: 10px 16px; border-radius: 4px;
}
.sg-skip-link:focus { top: 12px; color: #fff; }

.sg-container {
	width: 100%;
	max-width: calc(var(--sg-container) + var(--sg-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--sg-gutter);
}

.sg-eyebrow { color: var(--sg-green-bright); font-weight: 600; font-size: 18px; margin: 0 0 8px; }

/* Buttons ------------------------------------------------------------------ */
.sg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 43px; padding: 10px 22px; border: 0; border-radius: 4px;
	font: 500 15px/1.2 var(--sg-font); cursor: pointer; text-align: center;
	transition: background-color .2s, color .2s, transform .2s;
}
.sg-btn--green { background: var(--sg-green); color: #fff; }
.sg-btn--green:hover { background: #1b6b4a; color: #fff; }
.sg-btn--orange { background: var(--sg-orange); color: #fff; border-radius: 999px; }
.sg-btn--orange:hover { background: #e67600; color: #fff; }
.sg-btn--ghost { background: rgba(255, 255, 255, .25); color: #fff; border-radius: 999px; }
.sg-btn--ghost:hover { background: rgba(255, 255, 255, .4); color: #fff; }

/* Top bar ------------------------------------------------------------------ */
.sg-topbar { background: var(--sg-navy); color: #fff; font-size: 15px; }
.sg-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.sg-topbar__contact { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0; padding: 0; list-style: none; }
.sg-topbar__contact li, .sg-topbar__contact a { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.sg-topbar__contact a:hover { color: #9fe3c4; }
.sg-topbar__contact .sg-icon { color: #2ed39a; flex: none; }

/* Social icons ------------------------------------------------------------- */
.sg-social { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sg-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 27px; height: 27px; border-radius: 50%;
	background: var(--sg-green); color: #fff; border: 1px solid rgba(255, 255, 255, .5);
	transition: background-color .2s;
}
.sg-social a:hover { background: var(--sg-orange); color: #fff; }
.sg-social--topbar .sg-icon { width: 15px; height: 15px; }
.sg-social--footer { gap: 6px; margin-top: 18px; }
.sg-social--footer a { width: 36px; height: 36px; }

/* Header ------------------------------------------------------------------- */
.sg-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--sg-border); }
.admin-bar .sg-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sg-header { top: 0; } }

.sg-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--sg-header-h); }
.sg-header__logo { flex: none; }
.sg-header__logo img { display: block; width: auto; max-height: 36px; }
.sg-logo-text { font-weight: 800; font-size: 26px; color: var(--sg-navy-text); letter-spacing: .02em; }

.sg-nav { display: flex; align-items: center; flex: 1; justify-content: flex-end; gap: 32px; }
.sg-nav__menu { display: flex; align-items: center; gap: 28px; margin: 0 auto; padding: 0; list-style: none; }
.sg-nav__menu a { display: block; padding: 8px 0; color: #33475b; font-size: 13px; font-weight: 500; }
.sg-nav__menu a:hover,
.sg-nav__menu .current-menu-item > a,
.sg-nav__menu .current_page_item > a,
.sg-nav__menu .current-menu-ancestor > a { color: var(--sg-green); font-weight: 600; }

/* dropdowns */
.sg-nav__menu li { position: relative; }
.sg-nav__menu .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 220px; margin: 0; padding: 8px 0; list-style: none;
	background: #fff; border-radius: 8px; box-shadow: var(--sg-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.sg-nav__menu li:hover > .sub-menu,
.sg-nav__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sg-nav__menu .sub-menu a { padding: 8px 16px; }

.sg-header__toggle { display: none; background: none; border: 0; padding: 8px; color: var(--sg-navy-text); cursor: pointer; }
.sg-header__toggle-close { display: none; }

@media (max-width: 1100px) {
	.sg-topbar__location { display: none; }
}

@media (max-width: 1024px) {
	:root { --sg-header-h: 70px; }
	.sg-header__toggle { display: inline-flex; }
	.sg-header__toggle[aria-expanded="true"] .sg-header__toggle-open { display: none; }
	.sg-header__toggle[aria-expanded="true"] .sg-header__toggle-close { display: inline; }

	.sg-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px var(--sg-gutter) 24px; background: #fff; box-shadow: var(--sg-shadow);
		display: none;
	}
	.sg-nav.is-open { display: flex; }
	.sg-nav__menu { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
	.sg-nav__menu a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--sg-border); }
	.sg-nav__menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
}

@media (max-width: 767px) {
	.sg-topbar { font-size: 13px; }
	.sg-topbar__inner { justify-content: center; min-height: 44px; padding-block: 6px; }
	.sg-topbar__contact { gap: 6px 20px; justify-content: center; }
	.sg-topbar__contact .sg-icon { width: 16px; height: 16px; }
	.sg-social--topbar { display: none; }
	.sg-header__logo img { max-height: 30px; }
}

/* Generic content (non-Elementor pages) ------------------------------------ */
.sg-content { padding-block: 64px; }
.sg-content__header { margin-bottom: 32px; }
.sg-content__title { font-size: clamp(28px, 4vw, 42px); }
.sg-content__meta { color: var(--sg-text-muted); }
.sg-entry { max-width: 820px; }
.sg-entry > * + * { margin-top: 1em; }
.sg-404 { text-align: center; padding-block: 120px; }
.sg-post-list { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sg-post-card { background: #fff; border: 1px solid var(--sg-border); border-radius: var(--sg-radius); overflow: hidden; }
.sg-post-card__thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sg-post-card__body { padding: 20px; }
.sg-post-card__title { font-size: 20px; }

/* Footer ------------------------------------------------------------------- */
.sg-footer { position: relative; background: var(--sg-navy); color: #fff; font-size: 15px; }
.sg-footer a { color: #fff; }
.sg-footer a:hover { color: #9fe3c4; }
/* Columns as in Figma: 338 / 189 / 229 / 205px, starting 269px from the left at 1440. */
.sg-footer__grid {
	display: grid; gap: 0;
	grid-template-columns: 338px 189px 229px minmax(0, 240px);
	padding-block: 48px 60px;
	max-width: calc(961px + var(--sg-gutter) * 2);
	transform: translateX(-30px);
}
.sg-footer__about { padding-right: 48px; }
.sg-footer__title,
.sg-footer__heading { color: #fff; font-size: 20px; font-weight: 600; margin: 0 0 16px; }
.sg-footer__about p { margin: 0; line-height: 1.15; }
.sg-footer__menu { margin: 0; padding: 0; list-style: none; line-height: 26px; }
.sg-footer__contact ul { margin: 0; padding: 0; list-style: none; line-height: 26px; }
.sg-footer__contact li { display: flex; gap: 6px; align-items: flex-start; }
.sg-footer__contact .sg-icon { color: var(--sg-orange); flex: none; margin-top: 4px; width: 14px; height: 14px; }
.sg-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .3); text-align: center; }
.sg-footer__bottom p { margin: 0; padding: 36px 0 54px; }

.sg-backtotop {
	position: fixed; right: 49px; bottom: 34px; z-index: 90;
	display: inline-flex; align-items: center; justify-content: center;
	width: 35px; height: 35px; border-radius: 4px; background: #1673d6; color: #fff;
	opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sg-backtotop.is-visible { opacity: 1; pointer-events: auto; }
.sg-backtotop:hover { background: var(--sg-green); color: #fff; }

@media (max-width: 1024px) {
	.sg-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; transform: none; }
}
@media (max-width: 600px) {
	.sg-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
	.sg-footer__bottom p { padding: 24px 0 72px; font-size: 13px; }
	.sg-backtotop { right: 16px; bottom: 16px; }
}
