
/*
 * Green FX Homepage + Services
 * Clean UI aligned with AI Photo FX stock archive theme.
 * Keeps homepage purpose/CPT preview rails intact; only visual layer is simplified.
 */

.gfx-home {
	--bg: #f6f7fb;
	--bg2: #ffffff;
	--bg3: #eef0f6;
	--surface: #ffffff;
	--border: rgba(15, 23, 42, 0.08);
	--border2: rgba(15, 23, 42, 0.14);
	--text: #0f172a;
	--text-dim: #475569;
	--text-muted: #64748b;
	--gold: #b8860b;
	--gold-soft: rgba(184, 134, 11, 0.12);
	--teal: #0d9488;
	--teal-soft: rgba(13, 148, 136, 0.12);
	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
	--font-head: 'Syne', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, sans-serif;
	--max-w: 1120px;
	--px: clamp(16px, 4vw, 32px);
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.gfx-home,
.gfx-home *,
.gfx-home *::before,
.gfx-home *::after { box-sizing: border-box; }

.gfx-home a { color: inherit; text-decoration: none; }
.gfx-home img { display: block; max-width: 100%; }

.gfx-wrap {
	width: 100%;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 var(--px);
}

.gfx-eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--gold);
}

.gfx-eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gold);
	flex: 0 0 auto;
}

/* Hero: same calm/centered feel as stock archive */
.gfx-hero {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: 56px 0 48px;
	border-bottom: 1px solid var(--border);
	background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.gfx-hero::before,
.gfx-hero::after {
	content: "";
	position: absolute;
	width: 560px;
	height: 560px;
	border-radius: 50%;
	filter: blur(100px);
	pointer-events: none;
	z-index: 0;
}

.gfx-hero::before {
	top: -120px;
	left: -80px;
	background: radial-gradient(circle, rgba(184, 134, 11, .12) 0%, transparent 70%);
}

.gfx-hero::after {
	top: -80px;
	right: -100px;
	background: radial-gradient(circle, rgba(13, 148, 136, .10) 0%, transparent 70%);
}

.gfx-hero-grid {
	position: relative;
	z-index: 1;
	display: block;
	max-width: 42rem;
	margin: 0 auto;
}

.gfx-hero h1,
.gfx-section-head h2,
.gfx-cta h2 {
	font-family: var(--font-head);
	letter-spacing: -0.01em;
}

.gfx-hero h1 {
	margin: 0;
	font-size: clamp(1.625rem, 3.2vw, 2.375rem);
	font-weight: 700;
	line-height: 1.22;
	color: var(--text);
}

.gfx-hero h1 em {
	font-style: normal;
	background: linear-gradient(95deg, var(--gold) 0%, var(--teal) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.gfx-lead {
	max-width: 38rem;
	margin: 14px auto 0;
	font-size: .875rem;
	font-weight: 400;
	line-height: 1.65;
	color: var(--text-dim);
}

.gfx-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 28px;
}

.gfx-btn,
.gfx-view-all,
.gfx-card-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, opacity .18s ease;
	white-space: nowrap;
}

.gfx-btn,
.gfx-view-all {
	min-height: 38px;
	padding: 9px 14px;
}

.gfx-btn:hover,
.gfx-view-all:hover,
.gfx-card-link:hover { transform: translateY(-1px); }

.gfx-btn-primary {
	background: var(--text);
	border-color: var(--text);
	color: #fff !important;
}

.gfx-btn-rose {
	background: linear-gradient(180deg, #14b8a6 0%, var(--teal) 100%);
	border-color: rgba(13, 148, 136, .2);
	color: #fff !important;
}

.gfx-btn-secondary,
.gfx-view-all {
	background: var(--surface);
	color: var(--text-dim) !important;
}

.gfx-btn-secondary:hover,
.gfx-view-all:hover {
	color: var(--text) !important;
	border-color: var(--border2);
}

/* Hide the old hero preview panel for a cleaner stock-archive style hero. */
.gfx-hero-card,
.gfx-services-note { display: none; }

.gfx-trust {
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
	background: var(--bg2);
}

.gfx-trust-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.gfx-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-muted);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.35;
}

.gfx-trust-item strong { color: var(--text-dim); font-weight: 600; }

.gfx-section {
	padding: 44px 0;
	background: var(--bg);
}

.gfx-section-white {
	background: var(--bg2);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.gfx-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.gfx-section-head h2 {
	margin: 0;
	font-size: clamp(1.125rem, 2vw, 1.45rem);
	font-weight: 600;
	line-height: 1.28;
	color: var(--text);
}

.gfx-section-head p {
	max-width: 42rem;
	margin: 7px 0 0;
	font-size: .8125rem;
	font-weight: 400;
	line-height: 1.6;
	color: var(--text-muted);
}

/* CPT preview rails */
.gfx-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(190px, 230px);
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline mandatory;
	padding: 2px 2px 12px;
}

.gfx-rail::-webkit-scrollbar,
.gfx-path-grid::-webkit-scrollbar { height: 7px; }
.gfx-rail::-webkit-scrollbar-thumb,
.gfx-path-grid::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, .14); border-radius: 999px; }

.gfx-card,
.gfx-feature,
.gfx-empty,
.gfx-list li {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: none;
}

.gfx-card {
	overflow: hidden;
	scroll-snap-align: start;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.gfx-card:hover,
.gfx-feature:hover,
.gfx-list li:hover {
	border-color: rgba(184, 134, 11, .22);
	box-shadow: var(--shadow-sm);
}

.gfx-card-img {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: var(--bg3);
}

.gfx-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .22s ease;
}

.gfx-card:hover .gfx-card-img img { transform: scale(1.025); }

.gfx-card-badge {
	position: absolute;
	left: 9px;
	bottom: 9px;
	padding: 4px 8px;
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 999px;
	background: rgba(7, 8, 15, .78);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
}

.gfx-card-body { padding: 10px 12px 12px; }

.gfx-card-body h3 {
	margin: 0;
	font-family: var(--font-body);
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--text);
}

.gfx-card-body .gfx-card-link { margin-top: 9px; }

.gfx-card-link {
	width: fit-content;
	padding: 7px 10px;
	background: var(--surface);
	color: var(--teal) !important;
	border-color: rgba(13, 148, 136, .18);
}

.gfx-card-link:hover {
	background: #f0fdfa;
	border-color: rgba(13, 148, 136, .28);
	color: #0f766e !important;
}

.gfx-feature-grid,
.gfx-service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.gfx-path-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gfx-feature {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	padding: 16px;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.gfx-feature strong {
	display: inline-flex;
	width: fit-content;
	margin-bottom: 10px;
	padding: 4px 8px;
	border: 1px solid rgba(184, 134, 11, .16);
	border-radius: 999px;
	background: var(--gold-soft);
	color: var(--gold);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.gfx-feature h3 {
	margin: 0 0 6px;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--text);
}

.gfx-feature p {
	margin: 0;
	font-size: .8125rem;
	line-height: 1.62;
	color: var(--text-muted);
}

.gfx-feature .gfx-card-link,
.gfx-service-card .gfx-card-link {
	margin-top: auto;
	padding-top: 7px;
}

.gfx-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gfx-list li { padding: 14px; }

.gfx-list strong {
	display: block;
	margin-bottom: 3px;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--text);
}

.gfx-list span {
	font-size: .8125rem;
	line-height: 1.6;
	color: var(--text-muted);
}

.gfx-why {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: 24px;
	align-items: start;
}

.gfx-cta {
	padding: 42px 0;
	background: var(--text);
	color: #fff !important;
}

.gfx-cta-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
}

.gfx-cta h2 {
	margin: 0;
	font-size: clamp(1.125rem, 2vw, 1.45rem);
	font-weight: 600;
	line-height: 1.28;
	color: #fff !important;
}

.gfx-cta p {
	max-width: 40rem;
	margin: 7px 0 0;
	font-size: .8125rem;
	line-height: 1.6;
	color: rgba(255,255,255,.68) !important;
}

.gfx-cta .gfx-btn-primary {
	background: var(--gold);
	border-color: var(--gold);
	color: #0a0b12 !important;
}

.gfx-empty {
	padding: 18px;
	font-size: .875rem;
	color: var(--text-muted);
}

/* Services parent page */
.gfx-services-page .gfx-section-head h2 { max-width: 42rem; }
.gfx-services-page .gfx-why .gfx-section-head { display: block; margin-bottom: 0; }
.gfx-services-page .gfx-list span { display: inline; }

@media (max-width: 960px) {
	.gfx-cta-grid,
	.gfx-section-head,
	.gfx-why { grid-template-columns: 1fr; }

	.gfx-section-head { align-items: flex-start; }

	.gfx-feature-grid,
	.gfx-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.gfx-path-grid {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(220px, 270px);
		grid-template-columns: none;
		gap: 14px;
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		scroll-snap-type: inline mandatory;
		padding: 2px 2px 12px;
	}

	.gfx-path-grid .gfx-feature { scroll-snap-align: start; }
}

@media (max-width: 640px) {
	.gfx-hero { padding: 40px 0 36px; }
	.gfx-hero h1 { font-size: 1.5rem; }
	.gfx-lead { font-size: .8125rem; }

	.gfx-actions .gfx-btn,
	.gfx-cta .gfx-btn { width: 100%; }

	.gfx-section { padding: 38px 0; }

	/* Keep archive/view-all button compact below the heading on mobile. */
	.gfx-section-head {
		display: block;
	}

	.gfx-section-head .gfx-view-all {
		width: auto;
		max-width: max-content;
		margin-top: 12px;
	}

	.gfx-feature-grid,
	.gfx-service-grid { grid-template-columns: 1fr; }
	.gfx-rail { grid-auto-columns: minmax(175px, 62vw); gap: 12px; }
	.gfx-path-grid { grid-auto-columns: minmax(220px, 84vw); }
	.gfx-card-body { padding: 10px; }
	.gfx-cta-grid { grid-template-columns: 1fr; }
}


/* Digital Invitation service page */
.gfx-digital-page .gfx-hero h1 { max-width: 45rem; margin-left: auto; margin-right: auto; }
.gfx-digital-page .gfx-lead { max-width: 40rem; }
.gfx-digital-page .gfx-path-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gfx-di-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gfx-feature-soft {
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.86)),
    radial-gradient(circle at top left, rgba(13,148,136,.10), transparent 42%),
    radial-gradient(circle at bottom right, rgba(184,134,11,.10), transparent 44%);
}
.gfx-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.gfx-event-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94)),
    radial-gradient(circle at top left, rgba(13,148,136,.07), transparent 40%);
  color: var(--text) !important;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gfx-event-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13,148,136,.20);
  box-shadow: 0 10px 30px rgba(15,23,42,.10);
}
.gfx-event-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.gfx-event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .25s ease;
}
.gfx-event-card:hover .gfx-event-media img { transform: scale(1.035); }
.gfx-event-shade { display: none; }
.gfx-event-label {
  display: inline-flex;
  width: fit-content;
  margin: 14px 14px 8px;
  padding: 4px 8px;
  border: 1px solid rgba(13,148,136,.16);
  border-radius: 999px;
  background: rgba(13,148,136,.08);
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gfx-event-card strong {
  display: block;
  margin: 0 14px 6px;
  color: var(--text);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.28;
}
.gfx-event-card small {
  display: block;
  margin: 0 14px 16px;
  max-width: 19rem;
  color: var(--text-dim);
  font-size: .78rem;
  line-height: 1.55;
}
.gfx-di-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gfx-di-panel {
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.gfx-di-panel-primary {
  background:
    radial-gradient(circle at top left, rgba(13,148,136,.14), transparent 44%),
    linear-gradient(180deg, #fff, #f8fafc);
}
.gfx-di-panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--text);
}
.gfx-di-panel p {
  margin: 0 0 16px;
  font-size: .8125rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.gfx-mini-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.gfx-mini-list li {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  padding-left: 0;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.gfx-mini-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: .62em;
  border-radius: 50%;
  background: var(--teal);
}
@media (max-width: 960px) {
  .gfx-di-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gfx-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gfx-di-options,
  .gfx-event-grid,
  .gfx-di-split { grid-template-columns: 1fr; }
  .gfx-event-media { aspect-ratio: 16 / 9; }
}


/* Video sample cards for service pages */
.gfx-video-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.gfx-video-sample-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(20, 43, 36, 0.1);
  box-shadow: 0 18px 45px rgba(8, 28, 20, 0.08);
}
.gfx-video-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(230, 184, 90, 0.24), transparent 34%), linear-gradient(135deg, #102d26, #071a16);
  color: #fff;
}
.gfx-video-placeholder span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 28px;
  padding-left: 4px;
}
.gfx-video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #071a16;
}
.gfx-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.gfx-video-sample-body {
  padding: 22px;
}
.gfx-video-sample-body h3 {
  margin: 10px 0 8px;
}
.gfx-video-sample-body p {
  margin: 0 0 14px;
  color: var(--gfx-muted);
}
@media (max-width: 760px) {
  .gfx-video-sample-grid { grid-template-columns: 1fr; }
  .gfx-video-placeholder { min-height: 190px; }
}

/* Long-form contextual content for service pages. */
.gfx-long-content-section {
    padding-top: 28px;
}

.gfx-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gfx-content-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 61, 52, 0.1);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(15, 61, 52, 0.07);
}

.gfx-content-card h2 {
    margin: 0 0 10px;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.gfx-content-card p {
    margin: 0 0 12px;
    color: var(--gfx-muted);
}

.gfx-content-card p:last-child,
.gfx-content-card .gfx-mini-list:last-child {
    margin-bottom: 0;
}

@media (max-width: 780px) {
    .gfx-content-grid {
        grid-template-columns: 1fr;
    }
}

/* v1.5.0 richer page context sections */
.gfx-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gfx-content-card {
    background: #fff;
    border: 1px solid rgba(12, 65, 54, 0.10);
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 18px 50px rgba(20, 44, 38, 0.06);
}

.gfx-content-card h2 {
    margin: 8px 0 12px;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.12;
}

.gfx-content-card p {
    margin: 0 0 16px;
    color: var(--gfx-muted);
}

.gfx-di-context .gfx-content-card {
    background: linear-gradient(180deg, #ffffff, #fbf7ee);
}

@media (max-width: 760px) {
    .gfx-content-grid {
        grid-template-columns: 1fr;
    }

    .gfx-content-card {
        padding: 22px;
        border-radius: 22px;
    }
}

/* v1.5.3: embedded video samples inside cards */
.gfx-video-placeholder-link {
  text-decoration: none;
}
.gfx-video-embed iframe {
  display: block;
}
