/*
Theme Name:        The Goodwin Group
Theme URI:         https://goodwingroupinc.com/
Author:            ECC Media Pro
Author URI:        https://eccmediapro.com/
Description:       Custom theme for The Goodwin Group, Inc. Rebuilds the current homepage (hero with background video, welcome, featured properties carousel, contact form, curved footer) without Elementor Pro or Slider Revolution. Homepage content is edited in Appearance → Customize → Goodwin Homepage; listings under Properties. Works with Elementor (free) and Elements Ultra.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      7.1
Requires PHP:      7.4
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       goodwin-group
Update URI:        false
*/

/* ---------------------------------------------------------------------------
   Tokens
--------------------------------------------------------------------------- */
:root {
	--gwg-green: #15a32a;
	--gwg-green-dark: #005e09;
	--gwg-green-deep: #024c0c;
	--gwg-green-overlay: rgba(13, 79, 0, 0.82);
	--gwg-accent: #61ce70;
	--gwg-grey: #939393;
	--gwg-grey-mid: #717371;
	--gwg-text: #6b6b6b;
	--gwg-ink: #191c20;
	--gwg-light: #efefef;
	--gwg-white: #fff;
	--gwg-btn-grey: #54595f;
	--gwg-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--gwg-font-alt: "Montserrat", var(--gwg-font);
	--gwg-font-head: "Roboto", var(--gwg-font);
	--gwg-container: 1140px;
	--gwg-gutter: 20px;
	--gwg-header-top: var(--wp-admin--admin-bar--height, 0px);
	--gwg-curve-h: clamp(60px, 18.5vw, 250px);
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--gwg-white);
	color: var(--gwg-text);
	font-family: var(--gwg-font);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

img {
	height: auto;
	border: 0;
}

a {
	color: var(--gwg-green-dark);
}

a:hover,
a:focus {
	color: var(--gwg-green);
}

:focus-visible {
	outline: 2px solid var(--gwg-accent);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	color: var(--gwg-green-dark);
	font-family: var(--gwg-font);
	font-weight: 600;
	line-height: 1.2;
}

p {
	margin: 0 0 1em;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	top: 8px;
	left: 8px;
	z-index: 100000;
	padding: 12px 20px;
	background: var(--gwg-white);
	color: var(--gwg-green-deep);
	font-weight: 600;
}

.gwg-container {
	width: 100%;
	max-width: var(--gwg-container);
	margin-inline: auto;
	padding-inline: var(--gwg-gutter);
}

.gwg-container--narrow {
	max-width: 840px;
}

/* Thin centered rule used under section titles (6% wide, like the original). */
.gwg-rule {
	display: block;
	width: 6%;
	min-width: 48px;
	height: 1px;
	margin: 15px auto;
	background: var(--gwg-grey);
}

.gwg-rule--light {
	background: var(--gwg-white);
}

.gwg-btn {
	display: inline-block;
	padding: 15px 30px;
	border: 0;
	border-radius: 50px;
	background: var(--gwg-green);
	color: var(--gwg-white);
	font-family: var(--gwg-font);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 2.3px;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
}

.gwg-btn:hover,
.gwg-btn:focus {
	background: var(--gwg-green-dark);
	color: var(--gwg-white);
}

.gwg-btn--grey {
	background: var(--gwg-btn-grey);
	border-radius: 66px;
	letter-spacing: 0.5px;
	text-transform: none;
	font-size: 15px;
}

.gwg-btn--grey:hover,
.gwg-btn--grey:focus {
	background: #3f4347;
}

/* Curved section edge (fill matches the section below it). */
.gwg-curve {
	position: absolute;
	left: 0;
	right: 0;
	height: var(--gwg-curve-h);
	line-height: 0;
	pointer-events: none;
}

.gwg-curve svg {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	fill: var(--gwg-light);
}

/* ---------------------------------------------------------------------------
   Header
--------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: var(--gwg-header-top);
	z-index: 1000;
	padding: 20px 0 10px;
	background-color: var(--gwg-green-deep);
	transition: background-color 0.225s ease-in, box-shadow 0.225s ease-in;
}

.gwg-has-hero .site-header {
	position: fixed;
	left: 0;
	right: 0;
	background-color: transparent;
}

.gwg-has-hero .site-header.is-scrolled,
.gwg-has-hero .site-header.menu-open {
	background-color: var(--gwg-green-deep);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
	display: flex;
	align-items: flex-start;
}

.site-header__brand {
	flex: 0 0 26.667%;
	padding: 0 10px;
}

.site-header__logo {
	display: block;
	width: 73%;
	margin: -18px auto 0;
}

.site-header__logo .gwg-logo__img {
	display: block;
	width: 100%;
}

.site-nav {
	flex: 1 1 auto;
	margin: 13px 0 0 37px;
}

.gwg-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gwg-menu li {
	position: relative;
}

.gwg-menu a {
	display: block;
	padding: 13px 20px;
	color: var(--gwg-white);
	font-size: 17px;
	font-weight: 300;
	line-height: 20px;
	text-decoration: none;
	text-transform: uppercase;
	text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.37);
	transition: color 0.3s;
}

.gwg-menu a:hover,
.gwg-menu a:focus,
.gwg-menu .current-menu-item > a,
.gwg-menu .current-menu-ancestor > a {
	color: var(--gwg-accent);
}

/* Dropdowns (desktop). */
.gwg-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 220px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--gwg-white);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.gwg-menu li:hover > .sub-menu,
.gwg-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.gwg-menu .sub-menu a {
	padding: 12px 18px;
	color: #33373d;
	font-size: 15px;
	text-shadow: none;
	text-transform: none;
}

.gwg-menu .sub-menu a:hover,
.gwg-menu .sub-menu a:focus,
.gwg-menu .sub-menu .current-menu-item > a {
	background: var(--gwg-green-dark);
	color: var(--gwg-white);
}

.gwg-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 0 3px 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.site-nav__toggle {
	display: none;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: var(--gwg-white);
	cursor: pointer;
	filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.37));
}

.site-nav__bars,
.site-nav__bars::before,
.site-nav__bars::after {
	display: block;
	width: 24px;
	height: 2px;
	margin: 0 auto;
	background: currentColor;
	transition: transform 0.25s, opacity 0.25s;
}

.site-nav__bars {
	position: relative;
}

.site-nav__bars::before,
.site-nav__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.site-nav__bars::before {
	top: -7px;
}

.site-nav__bars::after {
	top: 7px;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__bars {
	background: transparent;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__bars::before {
	transform: translateY(7px) rotate(45deg);
}

.site-nav__toggle[aria-expanded="true"] .site-nav__bars::after {
	transform: translateY(-7px) rotate(-45deg);
}

/* Burger menu from tablet down (matches "dropdown: tablet"). */
@media (max-width: 1024px) {
	.site-header__inner {
		align-items: center;
	}

	.site-nav {
		margin: 0;
		display: flex;
		justify-content: flex-end;
	}

	.site-nav__toggle {
		display: block;
	}

	.site-nav .gwg-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		gap: 0;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		background: var(--gwg-white);
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	}

	.site-nav.is-open .gwg-menu {
		display: flex;
	}

	.site-nav .gwg-menu a {
		padding: 14px 24px;
		border-top: 1px solid #ececec;
		color: #33373d;
		font-size: 16px;
		font-weight: 400;
		text-shadow: none;
	}

	.site-nav .gwg-menu a:hover,
	.site-nav .gwg-menu a:focus,
	.site-nav .gwg-menu .current-menu-item > a {
		background: var(--gwg-green-dark);
		color: var(--gwg-white);
	}

	.gwg-menu .sub-menu {
		position: static;
		min-width: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.gwg-menu .sub-menu a {
		padding-left: 40px;
	}
}

@media (max-width: 767px) {
	.site-header {
		padding: 12px 0 8px;
	}

	.site-header__brand {
		flex-basis: 50%;
		padding: 0;
	}

	.site-header__logo {
		width: 100%;
		max-width: 150px;
		margin: 0;
	}
}

/* ---------------------------------------------------------------------------
   Homepage: hero
--------------------------------------------------------------------------- */
.gwg-hero {
	--hero-h: clamp(460px, 64vw, 1000px);
	position: relative;
	height: var(--hero-h);
	overflow: hidden;
	background: #212121;
}

.gwg-hero__media {
	position: absolute;
	inset: 0;
	background-color: #d3d3d3;
	background-position: center;
	background-size: cover;
	/* Approximates the slider's "earlybird" image filter. */
	filter: sepia(0.2) contrast(0.92) brightness(1.06) saturate(0.95);
}

.gwg-hero__video {
	position: absolute;
	inset: 0;
	overflow: hidden;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.gwg-hero__video.is-playing {
	opacity: 1;
}

.gwg-hero__video iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100%, calc(var(--hero-h) * 16 / 9));
	height: max(100%, calc(100vw * 9 / 16));
	max-width: none;
	border: 0;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.gwg-hero__tint {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 30%);
}

.gwg-hero__graphic {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	max-width: none;
	opacity: 0.8;
	filter: brightness(15%) contrast(106%) saturate(95%) blur(0.3px) hue-rotate(114deg);
	pointer-events: none;
}

.gwg-hero__curve {
	bottom: -1px;
}

/* ---------------------------------------------------------------------------
   Homepage: welcome
--------------------------------------------------------------------------- */
.gwg-welcome {
	position: relative;
	margin-top: calc(var(--gwg-curve-h) * -0.5);
	padding: 40px 0 43px;
	background: var(--gwg-light);
	text-align: center;
}

.gwg-eyebrow {
	margin: 0;
	color: var(--gwg-grey);
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 3.3px;
	text-transform: uppercase;
}

.gwg-title {
	margin: 12px 0 0;
	color: var(--gwg-green);
	font-size: 41px;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
}

.gwg-welcome__intro {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-top: 20px;
	text-align: left;
}

.gwg-welcome__logo,
.gwg-welcome__text {
	flex: 1 1 50%;
	padding: 10px;
}

.gwg-welcome__logo {
	text-align: center;
}

.gwg-welcome__logo .gwg-logo__img {
	width: 250px;
}

.gwg-welcome__text {
	font-size: 17px;
}

.gwg-stats {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	margin-top: 43px;
}

.gwg-stats p {
	margin: 0;
}

.gwg-stats__word {
	flex: 0 0 30.4%;
	padding-top: 18px;
	color: var(--gwg-green);
	font-family: var(--gwg-font-head);
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
}

.gwg-stats__dot {
	flex: 0 0 4.8%;
	position: relative;
	height: 14px;
	margin-top: 39px;
}

.gwg-stats__dot::before {
	content: "";
	position: absolute;
	left: 50%;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	border-radius: 50%;
	background: var(--gwg-green-dark);
}

.gwg-stats__center {
	flex: 0 0 30%;
	padding-top: 10px;
}

.gwg-stats__number {
	color: var(--gwg-green-dark);
	font-family: var(--gwg-font-head);
	font-size: 57px;
	font-weight: 700;
	line-height: 1;
}

.gwg-stats__label {
	margin-top: 6px !important;
	color: var(--gwg-grey-mid);
	font-family: var(--gwg-font-alt);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.15;
}

.gwg-welcome__cta {
	margin: 60px 0 0;
}

/* ---------------------------------------------------------------------------
   Homepage: featured properties
--------------------------------------------------------------------------- */
.gwg-properties {
	padding: 61px 0 70px;
	background: var(--gwg-white);
	text-align: center;
}

.gwg-section-title {
	margin: 0;
	color: var(--gwg-green-dark);
	font-size: 36px;
	font-weight: 600;
	line-height: 1.1;
}

.gwg-section-title--light {
	color: var(--gwg-white);
	font-size: 41px;
	font-weight: 400;
	text-transform: uppercase;
}

.gwg-carousel {
	position: relative;
	max-width: 1320px;
	margin: 16px auto 0;
	padding: 0 56px;
}

.gwg-carousel__viewport {
	overflow: hidden;
}

.gwg-carousel__track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform 0.5s ease;
	will-change: transform;
}

.gwg-carousel__slide {
	flex: 0 0 calc(100% / var(--per-view, 3));
	padding: 0 10px;
}

.gwg-property {
	margin: 0;
}

.gwg-property img {
	display: block;
	width: 100%;
	max-width: 360px;
	aspect-ratio: 4 / 3;
	margin: 0 auto;
	object-fit: cover;
	background: #e6e6e6;
}

.gwg-property figcaption {
	margin-top: 10px;
	color: var(--gwg-ink);
	font-size: 18px;
	line-height: 1.1;
}

.gwg-carousel__arrow {
	position: absolute;
	top: 0;
	width: 44px;
	height: 44px;
	margin-top: min(13vw, 120px);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--gwg-green-dark);
	cursor: pointer;
}

.gwg-carousel__arrow::before {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	margin: 0 auto;
	border-left: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
}

.gwg-carousel__arrow--prev {
	left: 6px;
}

.gwg-carousel__arrow--prev::before {
	transform: translateX(3px) rotate(45deg);
}

.gwg-carousel__arrow--next {
	right: 6px;
}

.gwg-carousel__arrow--next::before {
	transform: translateX(-3px) rotate(-135deg);
}

.gwg-carousel__arrow:hover {
	color: var(--gwg-green);
}

.gwg-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-top: 24px;
}

.gwg-carousel__dots button {
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.gwg-carousel__dots button::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--gwg-green-dark);
	opacity: 0.25;
	transition: opacity 0.2s;
}

.gwg-carousel__dots button[aria-current="true"]::before {
	opacity: 1;
}

/* Without JS the carousel becomes a swipeable row. */
html:not(.js) .gwg-carousel__viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

html:not(.js) .gwg-carousel__slide {
	scroll-snap-align: start;
}

html:not(.js) .gwg-carousel__arrow,
html:not(.js) .gwg-carousel__dots {
	display: none;
}

/* ---------------------------------------------------------------------------
   Homepage: contact
--------------------------------------------------------------------------- */
.gwg-contact {
	position: relative;
	min-height: 487px;
	margin-top: 30px;
	padding: 122px 0 142px;
	background-color: #13355b;
	background-position: center;
	background-size: cover;
	text-align: center;
}

.gwg-contact::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--gwg-green-overlay);
}

.gwg-contact__inner {
	position: relative;
}

.gwg-contact .gwg-rule {
	margin-bottom: 20px;
}

.gwg-contact__form {
	max-width: 380px;
	margin: 20px auto 0;
	text-align: left;
}

.gwg-form__row {
	display: flex;
	gap: 11px;
}

.gwg-form__field {
	flex: 1 1 100%;
	margin: 0 0 22px;
}

.gwg-form__field--half {
	flex-basis: 50%;
	min-width: 0;
}

.gwg-form label {
	display: block;
	padding-bottom: 12px;
	color: var(--gwg-white);
	font-size: 15px;
	line-height: 1;
}

.gwg-form input[type="text"],
.gwg-form input[type="email"] {
	width: 100%;
	min-height: 40px;
	padding: 5px 14px;
	border: 1px solid #f7f7f7;
	border-radius: 3px;
	background: rgba(35, 164, 85, 0.24);
	color: var(--gwg-white);
	font-family: var(--gwg-font);
	font-size: 12px;
}

.gwg-form input::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.gwg-form input:focus {
	outline: 2px solid var(--gwg-accent);
	outline-offset: 0;
}

.gwg-form__submit {
	margin: 0;
	text-align: center;
}

.gwg-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.gwg-form__notice {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 3px;
	color: var(--gwg-white);
	font-size: 15px;
	text-align: center;
}

.gwg-form__notice--ok {
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.6);
}

.gwg-form__notice--err {
	background: rgba(160, 20, 20, 0.55);
}

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.site-footer {
	position: relative;
	z-index: 1;
}

.site-footer__brand {
	position: relative;
	padding: calc(var(--gwg-curve-h) * 0.6 + 10px) 0 57px;
	background: var(--gwg-light);
	box-shadow: 0 0 62px 14px rgba(0, 0, 0, 0.5);
	text-align: center;
}

.site-footer__curve {
	top: 0;
	transform: translateY(-40%);
}

.site-footer__logo {
	position: relative;
	display: inline-block;
	width: min(80%, 320px);
}

.site-footer__logo .gwg-logo__img {
	display: block;
	width: 100%;
}

.site-footer__bar {
	background: var(--gwg-green-deep);
}

.site-footer__bar p {
	margin: 0 auto;
	padding-block: 14px;
	color: var(--gwg-white);
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}

/* Inner pages (no hero): no curve above the footer, a softer shadow. */
body:not(.gwg-has-hero) .site-footer__curve {
	display: none;
}

body:not(.gwg-has-hero) .site-footer__brand {
	padding-top: 40px;
	box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.12);
}

/* ---------------------------------------------------------------------------
   Inner pages, posts, archives
--------------------------------------------------------------------------- */
.gwg-page-head {
	padding: 54px 0 20px;
	background: var(--gwg-light);
	text-align: center;
}

.gwg-page-head__title {
	margin: 0;
	color: var(--gwg-green);
	font-size: clamp(30px, 5vw, 41px);
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase;
}

.gwg-page-head .gwg-meta {
	margin: 12px 0 0;
}

.gwg-entry {
	padding-block: 50px 60px;
}

.gwg-entry__media {
	margin: 0 0 30px;
}

.gwg-entry__content > *:last-child {
	margin-bottom: 0;
}

.gwg-entry__content h2 {
	font-size: 30px;
}

.gwg-entry__content h3 {
	font-size: 24px;
}

.gwg-entry__content ul,
.gwg-entry__content ol {
	padding-left: 1.3em;
}

.gwg-entry__content blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--gwg-green);
	color: #555;
	font-style: italic;
}

.gwg-entry__content .wp-block-button__link,
.gwg-entry__content .wp-element-button {
	border-radius: 50px;
	background: var(--gwg-green);
	color: var(--gwg-white);
}

.alignwide {
	margin-inline: max(-120px, calc((100% - 100vw) / 2));
}

.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.wp-caption-text,
figcaption {
	color: #777;
	font-size: 14px;
}

.gwg-meta {
	color: var(--gwg-grey);
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.gwg-list {
	padding-block: 50px 60px;
}

.gwg-card {
	display: flex;
	gap: 24px;
	padding-bottom: 32px;
	margin-bottom: 32px;
	border-bottom: 1px solid #e5e5e5;
}

.gwg-card__media {
	flex: 0 0 240px;
}

.gwg-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.gwg-card__title {
	margin-bottom: 6px;
	font-size: 24px;
}

.gwg-card__title a {
	text-decoration: none;
}

.gwg-card .gwg-meta {
	margin-bottom: 10px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 40px;
}

.pagination .nav-links {
	justify-content: center;
}

.page-numbers {
	padding: 6px 12px;
	border-radius: 3px;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--gwg-green-dark);
	color: var(--gwg-white);
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form label {
	flex: 1;
}

.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cfcfcf;
	border-radius: 3px;
	font: inherit;
}

.search-submit,
.comment-form .submit {
	padding: 10px 22px;
	border: 0;
	border-radius: 50px;
	background: var(--gwg-green);
	color: var(--gwg-white);
	font: inherit;
	cursor: pointer;
}

.gwg-comments {
	padding-bottom: 60px;
}

.gwg-comments__list {
	padding-left: 0;
	list-style: none;
}

.gwg-comments__list .children {
	list-style: none;
}

.gwg-404 {
	text-align: center;
}

/* Elementor-built pages run full width with no theme spacing. */
.gwg-builder {
	overflow-x: clip;
}

/* ---------------------------------------------------------------------------
   Reveal on scroll (the original's fadeInUp)
--------------------------------------------------------------------------- */
.js .gwg-reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.9s ease, transform 0.9s ease;
}

.js .gwg-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.js .gwg-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.gwg-carousel__track {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
   Tablet / phone
--------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.gwg-stats__word {
		font-size: 34px;
	}

	.gwg-stats__number {
		font-size: 46px;
	}
}

@media (max-width: 767px) {
	:root {
		--gwg-gutter: 16px;
	}

	.gwg-hero {
		--hero-h: max(118vw, 420px);
	}

	.gwg-title {
		font-size: 34px;
	}

	.gwg-welcome__intro {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		text-align: center;
	}

	.gwg-welcome__logo,
	.gwg-welcome__text {
		padding: 0;
	}

	.gwg-welcome__logo .gwg-logo__img {
		width: 200px;
	}

	.gwg-welcome__text {
		font-size: 16px;
		text-align: left;
	}

	.gwg-stats {
		flex-direction: column;
		align-items: center;
		gap: 18px;
		margin-top: 30px;
	}

	.gwg-stats__word,
	.gwg-stats__center,
	.gwg-stats__dot {
		flex: none;
		padding: 0;
		margin: 0;
	}

	.gwg-stats__dot {
		width: 14px;
	}

	.gwg-welcome__cta {
		margin-top: 40px;
	}

	.gwg-section-title {
		font-size: 30px;
	}

	.gwg-section-title--light {
		font-size: 32px;
	}

	.gwg-carousel {
		padding: 0 40px;
	}

	.gwg-carousel__arrow {
		margin-top: calc((100vw - 80px) * 0.375 - 22px);
	}

	.gwg-carousel__arrow--prev {
		left: 0;
	}

	.gwg-carousel__arrow--next {
		right: 0;
	}

	.gwg-contact {
		min-height: 0;
		padding: 70px 0 100px;
	}

	.gwg-contact__form {
		max-width: none;
	}

	.site-footer__brand {
		padding-bottom: 24px;
	}

	.gwg-card {
		flex-direction: column;
	}

	.gwg-card__media {
		flex-basis: auto;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 1em 0;
	}
}
